X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/f7fbb241bda54acc8179bef7d05e93a58b81093c..45dde9418dd342bb1a632d82559201c0b3becf1a:/cookbooks/munin/recipes/default.rb diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index df7bfbe08..ac1464a97 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -1,8 +1,8 @@ # -# Cookbook Name:: munin +# Cookbook:: munin # Recipe:: default # -# Copyright 2010, OpenStreetMap Foundation +# Copyright:: 2010, OpenStreetMap Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -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/