]> git.openstreetmap.org Git - chef.git/commitdiff
Make disk configuration more robust
authorTom Hughes <tom@compton.nu>
Thu, 22 Dec 2022 19:48:26 +0000 (19:48 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 22 Dec 2022 19:48:26 +0000 (19:48 +0000)
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,