From: Tom Hughes Date: Thu, 22 Dec 2022 19:48:26 +0000 (+0000) Subject: Make disk configuration more robust X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/73985606adf9c866cab4e8a414b05fe857a3f46d?ds=sidebyside Make disk configuration more robust --- diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 48e8f2888..72b405c3f 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -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,