Skip to content

Commit

Permalink
default_package_manager() should map FbDnfPackage to dnf
Browse files Browse the repository at this point in the history
Differential Revision: D66135275

fbshipit-source-id: bc64de8035e04a0cbe1e8f281515833238546115
  • Loading branch information
epilatow authored and facebook-github-bot committed Nov 19, 2024
1 parent bb09471 commit 0d28de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itchef/cookbooks/fb_helpers/libraries/node_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ def default_package_manager
if cls
m = cls.to_s.match(/Chef::Resource::(\w+)Package/)
if m[1]
m[1].downcase
m[1] == 'FbDnf' ? 'dnf' : m[1].downcase
else
fail "fb_helpers: unknown package manager resource class: #{cls}"
end
Expand Down

0 comments on commit 0d28de2

Please sign in to comment.