From cc7bef9b24c956ef3af906a2ac4854f588a71946 Mon Sep 17 00:00:00 2001 From: John Ferlito Date: Fri, 22 Aug 2014 16:13:21 +1000 Subject: [PATCH] Fix handler filter Would get created fine the first time but then have a nil error on second run. --- lib/puppet/provider/sensu_handler/json.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/sensu_handler/json.rb b/lib/puppet/provider/sensu_handler/json.rb index 9b0d57b945..e6db9e0691 100644 --- a/lib/puppet/provider/sensu_handler/json.rb +++ b/lib/puppet/provider/sensu_handler/json.rb @@ -97,7 +97,7 @@ def mutator=(value) end def filters - conf['filters'][resource[:name]]['filters'] + conf['handlers'][resource[:name]]['filters'] end def filters=(value)