From 7b9e43f261bfa3b242431b175fe8bca004352e3f Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Mon, 26 Feb 2018 17:45:50 -0800 Subject: add back default hash + comment Signed-off-by: Lamont Granquist --- lib/chef/provider/package/yum/python_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/chef/provider/package/yum') 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 + # 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) -- cgit v1.2.1