Skip to content

Commit

Permalink
hardware: do not fail if node[:hardware][:pci] is undefined (tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Mar 12, 2024
1 parent 66d05b0 commit 4dca09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/hardware/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
end

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

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

0 comments on commit 4dca09e

Please sign in to comment.