]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/attributes/default.rb
Fix rubocop warnings
[chef.git] / cookbooks / hardware / attributes / default.rb
index f77967a208604013e7ca5f50858f6a744748a23a..ce7aae86382f9ca162ff6f79381422dad01bbe37 100644 (file)
@@ -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")