From bcc6dc3240889bc666dd6bb1385e27b4c8699d08 Mon Sep 17 00:00:00 2001 From: Edward Pilatowicz Date: Tue, 19 Nov 2024 12:28:02 -0800 Subject: [PATCH] default_package_manager() should map FbDnfPackage to dnf Differential Revision: D66135275 fbshipit-source-id: bc64de8035e04a0cbe1e8f281515833238546115 --- cookbooks/fb_helpers/libraries/node_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/fb_helpers/libraries/node_methods.rb b/cookbooks/fb_helpers/libraries/node_methods.rb index 620f78af..b13b62f7 100644 --- a/cookbooks/fb_helpers/libraries/node_methods.rb +++ b/cookbooks/fb_helpers/libraries/node_methods.rb @@ -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