Skip to content
This repository was archived by the owner on Dec 31, 2021. It is now read-only.

Commit 49fe544

Browse files
committed
Merge pull request #5 from halkeye/master
Trap ResourceNotFound error for collectd_python_plugin
2 parents 8073564 + eff107b commit 49fe544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

definitions/collectd_plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
define :collectd_python_plugin, :options => {}, :module => nil, :path => nil do
3838
begin
3939
t = resources(:template => "/etc/collectd/plugins/python.conf")
40-
rescue ArgumentError
40+
rescue ArgumentError,Chef::Exceptions::ResourceNotFound
4141
collectd_plugin "python" do
4242
options :paths=>[node[:collectd][:plugin_dir]], :modules=>{}
4343
template "python_plugin.conf.erb"

0 commit comments

Comments
 (0)