Skip to content

Commit 4dca09e

Browse files
committed
hardware: do not fail if node[:hardware][:pci] is undefined (tests)
1 parent 66d05b0 commit 4dca09e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbooks/hardware/recipes/default.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
end
228228

229229
watchdog_module = %w[hpwdt sp5100_tco].find do |module_name|
230-
node[:hardware][:pci].any? { |_, pci| pci[:modules]&.any?(module_name) }
230+
node[:hardware][:pci]&.any? { |_, pci| pci[:modules]&.any?(module_name) }
231231
end
232232

233233
if node[:kernel][:modules].include?("ipmi_si")

0 commit comments

Comments
 (0)