X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f7fbb241bda54acc8179bef7d05e93a58b81093c..86aeaefd2b815793d4bed90170428068e60f7c9f:/cookbooks/munin/recipes/default.rb?ds=inline diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index df7bfbe08..3418d3e83 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -160,7 +160,7 @@ munin_plugin "http_loadtime" do end node[:network][:interfaces].each do |ifname, ifattr| - if ifattr[:flags].include?("UP") && !ifattr[:flags].include?("LOOPBACK") + if ifattr[:flags]&.include?("UP") && !ifattr[:flags].include?("LOOPBACK") if node[:hardware] && node[:hardware][:network] && node[:hardware][:network][ifname][:device] =~ /^virtio/