]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Make disk configuration more robust
[chef.git] / cookbooks / hardware / recipes / default.rb
index 48e8f28889d3286069cada8c68ce92bd47a7e213..72b405c3f60168178f547832f41ead0d8276426b 100644 (file)
@@ -477,7 +477,7 @@ disks = disks.map do |disk|
     munin = device
   end
 
-  next if device.nil?
+  next if device.nil? || munin.nil?
 
   Hash[
     :device => device,