diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-02-26 17:45:50 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-03-15 18:03:29 -0700 |
commit | 7b9e43f261bfa3b242431b175fe8bca004352e3f (patch) | |
tree | 0f781a11bd07e382d5feaf9de6efa5a4a97c681d /lib/chef/provider/package/yum | |
parent | 1b38da9eba33b0c6e6628022c9343cca5037abd4 (diff) | |
download | chef-7b9e43f261bfa3b242431b175fe8bca004352e3f.tar.gz |
add back default hash + comment
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/package/yum')
-rw-r--r-- | lib/chef/provider/package/yum/python_helper.rb | 3 |
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) |