diff --git a/lib/puppet/provider/sensu_check/json.rb b/lib/puppet/provider/sensu_check/json.rb index 33472928e9..7e12a4d341 100644 --- a/lib/puppet/provider/sensu_check/json.rb +++ b/lib/puppet/provider/sensu_check/json.rb @@ -200,6 +200,9 @@ def handle def handle=(value) case value + when true, 'true', 'True', :true, 1 && resource[:handlers] + Puppet.notice("Do not use 'handle' and 'handlers' together. Your 'handle' value has been overridden with 'handlers'") + return when true, 'true', 'True', :true, 1 conf['checks'][resource[:name]]['handle'] = true when false, 'false', 'False', :false, 0