projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99e9133
)
Avoid errors during bootstrap
author
Tom Hughes
<tom@compton.nu>
Fri, 9 Dec 2016 09:15:53 +0000
(09:15 +0000)
committer
Tom Hughes
<tom@compton.nu>
Fri, 9 Dec 2016 09:15:53 +0000
(09:15 +0000)
cookbooks/munin/recipes/default.rb
patch
|
blob
|
history
diff --git
a/cookbooks/munin/recipes/default.rb
b/cookbooks/munin/recipes/default.rb
index 1b4ae6d75d857346292d4eb89a4170cba741e7d1..39085f0e2f8efc32a400440a05457fad4662ef7f 100644
(file)
--- a/
cookbooks/munin/recipes/default.rb
+++ b/
cookbooks/munin/recipes/default.rb
@@
-162,7
+162,9
@@
end
node[:network][:interfaces].each do |ifname, ifattr|
if ifattr[:encapsulation] == "Ethernet" && ifattr[:state] == "up"
- if node[:hardware] && node[:hardware][:network][ifname][:device] =~ /^virtio/
+ if node[:hardware] &&
+ node[:hardware][:network] &&
+ node[:hardware][:network][ifname][:device] =~ /^virtio/
munin_plugin_conf "if_#{ifname}" do
template "if.erb"
variables :ifname => ifname