From 73985606adf9c866cab4e8a414b05fe857a3f46d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 22 Dec 2022 19:48:26 +0000 Subject: [PATCH] Make disk configuration more robust --- cookbooks/hardware/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.5