From 350728ce66192345d1d939e275f1ad3841f26c72 Mon Sep 17 00:00:00 2001 From: Antony Thomas Date: Fri, 15 Dec 2023 15:06:17 -0800 Subject: [PATCH] Use dnf modularity only when needed Differential Revision: D52218129 fbshipit-source-id: 7207ae4f9c8c2afd8ba27544b52dbae78fe83dc4 --- cookbooks/fb_dnf/recipes/default.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbooks/fb_dnf/recipes/default.rb b/cookbooks/fb_dnf/recipes/default.rb index 42e6bbb27..953a26c46 100644 --- a/cookbooks/fb_dnf/recipes/default.rb +++ b/cookbooks/fb_dnf/recipes/default.rb @@ -41,6 +41,8 @@ notifies :run, 'whyrun_safe_ruby_block[clean chef yum metadata]', :immediately end -fb_dnf_modularity 'manage modularity' +fb_dnf_modularity 'manage modularity' do + not_if { node['fb_dnf']['modules'].empty? } +end include_recipe 'fb_dnf::packages'