Skip to content
Browse files

Merge pull request #5 from halkeye/master

Trap ResourceNotFound error for collectd_python_plugin
  • Loading branch information...
2 parents 8073564 + eff107b commit 49fe5448b5776a0ad3d7c1385ffb8f9aea9fe33a @coderanger committed Sep 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 definitions/collectd_plugin.rb
View
2 definitions/collectd_plugin.rb
@@ -37,7 +37,7 @@
define :collectd_python_plugin, :options => {}, :module => nil, :path => nil do
begin
t = resources(:template => "/etc/collectd/plugins/python.conf")
- rescue ArgumentError
+ rescue ArgumentError,Chef::Exceptions::ResourceNotFound
collectd_plugin "python" do
options :paths=>[node[:collectd][:plugin_dir]], :modules=>{}
template "python_plugin.conf.erb"

0 comments on commit 49fe544

Please sign in to comment.
Something went wrong with that request. Please try again.