summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-04-17 16:26:22 -0700
committerTim Smith <tsmith84@gmail.com>2020-04-17 16:26:22 -0700
commitd380678cb616e55682a3ca5a61a0be340f301ca0 (patch)
tree358f241799be514aa4db2d0520d0c8bb35a7fda5 /lib
parent8cb8ebf764ab40900c5a65d48e1e0b97e1d075d5 (diff)
downloadchef-d380678cb616e55682a3ca5a61a0be340f301ca0.tar.gz
Use package_name_array
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/package/homebrew.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/homebrew.rb b/lib/chef/provider/package/homebrew.rb
index 2407841255..e3a0e471cc 100644
--- a/lib/chef/provider/package/homebrew.rb
+++ b/lib/chef/provider/package/homebrew.rb
@@ -92,7 +92,7 @@ class Chef
# @returns [Hash] a hash of package information where the key is the package name
def brew_info
@brew_info ||= begin
- command_array = ["info", "--json=v1"].concat Array(new_resource.package_name)
+ command_array = ["info", "--json=v1"].concat package_name_array
# convert the array of hashes into a hash where the key is the package name
cmd_output = brew_cmd_output(command_array, allow_failure: true)