Commit f1d7da19 authored by Mark Lapierre's avatar Mark Lapierre

Use default options for query params

When `execute` is called from other code (e.g., PlayJob),
the query params may be nil. Substitute the default empty hash.
parent d3e005ac
......@@ -16,8 +16,8 @@ class JobFinder
def initialize(options)
@project = options.delete(:project)
@pipeline_query = options.delete(:pipeline_query)
@job_query = options.delete(:job_query)
@pipeline_query = options.delete(:pipeline_query) || DEFAULT_OPTIONS[:pipeline_query]
@job_query = options.delete(:job_query) || DEFAULT_OPTIONS[:job_query]
@pipeline_id = options.delete(:pipeline_id)
@job_name = options.delete(:job_name)
@artifact_path = options.delete(:artifact_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment