projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f8cb5e
)
Avoid exception when an interface has no flags
author
Tom Hughes
<tom@compton.nu>
Fri, 15 Mar 2019 16:26:30 +0000
(16:26 +0000)
committer
Tom Hughes
<tom@compton.nu>
Fri, 15 Mar 2019 16:26:30 +0000
(16:26 +0000)
cookbooks/munin/recipes/default.rb
patch
|
blob
|
history
diff --git
a/cookbooks/munin/recipes/default.rb
b/cookbooks/munin/recipes/default.rb
index df7bfbe08df52e67aacd622f97f791c4e3f43616..3418d3e83b1843255ca6f44eed9d6096d099840f 100644
(file)
--- 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/