summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-02-26 17:45:50 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2018-03-15 18:03:29 -0700
commit7b9e43f261bfa3b242431b175fe8bca004352e3f (patch)
tree0f781a11bd07e382d5feaf9de6efa5a4a97c681d
parent1b38da9eba33b0c6e6628022c9343cca5037abd4 (diff)
downloadchef-7b9e43f261bfa3b242431b175fe8bca004352e3f.tar.gz
add back default hash + comment
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/provider/package/yum/python_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/provider/package/yum/python_helper.rb b/lib/chef/provider/package/yum/python_helper.rb
index 5f00763813..8fac97577b 100644
--- a/lib/chef/provider/package/yum/python_helper.rb
+++ b/lib/chef/provider/package/yum/python_helper.rb
@@ -107,9 +107,10 @@ class Chef
end
# @returns Array<Version>
+ # NB: "options" here is the yum_package options hash and is deliberately not **opts
def package_query(action, provides, version: nil, arch: nil, options: {})
parameters = { "provides" => provides, "version" => version, "arch" => arch }
- repo_opts = options_params(options)
+ repo_opts = options_params(options || {})
parameters.merge!(repo_opts)
query_output = query(action, parameters)
version = parse_response(query_output.lines.last)