X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/868dbb785525168c1d36f121bf83ebdd6c1aba51..d24cbac0d03e7fc2d15c8eb66a6690b18c699e62:/cookbooks/hardware/attributes/default.rb diff --git a/cookbooks/hardware/attributes/default.rb b/cookbooks/hardware/attributes/default.rb index f77967a20..ce7aae863 100644 --- a/cookbooks/hardware/attributes/default.rb +++ b/cookbooks/hardware/attributes/default.rb @@ -30,9 +30,7 @@ end if node[:kernel] && node[:kernel][:modules] raidmods = node[:kernel][:modules].keys & %w(cciss hpsa mptsas mpt2sas mpt3sas megaraid_mm megaraid_sas aacraid) - unless raidmods.empty? - default[:apt][:sources] |= ["hwraid"] - end + default[:apt][:sources] |= ["hwraid"] unless raidmods.empty? end if node[:kernel][:modules].include?("ipmi_si")