diff options
author | Lamont Granquist <lamont@chef.io> | 2020-09-21 10:09:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 10:09:24 -0700 |
commit | 572a3dcc888abe991671d717471b756d5164fa45 (patch) | |
tree | 87a1ef1021b710969327c4a0684bfd6beed57ae8 | |
parent | cb6ee920847d91b8c6cd8e7cb210b8a4fc730e69 (diff) | |
parent | 536be09c31ba380d55497a5d90552de198dc15a4 (diff) | |
download | chef-572a3dcc888abe991671d717471b756d5164fa45.tar.gz |
Merge pull request #10360 from ed-brex/ed-brex/homebrew-use-full-name
Check for full names in Homebrew package info
-rw-r--r-- | lib/chef/provider/package/homebrew.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/homebrew.rb b/lib/chef/provider/package/homebrew.rb index d61a0314c0..2b60c0a1ec 100644 --- a/lib/chef/provider/package/homebrew.rb +++ b/lib/chef/provider/package/homebrew.rb @@ -127,7 +127,7 @@ class Chef # check each item in the hash to see if we were passed an alias brew_info.each_value do |p| - return p if p["aliases"].include?(package_name) + return p if p["full_name"] == package_name || p["aliases"].include?(package_name) end {} |