diff --git a/lib/puppet/provider/sensu_handler/json.rb b/lib/puppet/provider/sensu_handler/json.rb index 88a6e34b63..fdf2053a55 100644 --- a/lib/puppet/provider/sensu_handler/json.rb +++ b/lib/puppet/provider/sensu_handler/json.rb @@ -25,6 +25,11 @@ def create @conf['handlers'][resource[:name]] = {} self.command = resource[:command] self.type = resource[:type] + # Optional arguments + self.exchange = resource[:exchange] unless resource[:exchange].nil? + self.handlers = resource[:handlers] unless resource[:handlers].nil? + self.mutator = resource[:mutator] unless resource[:mutator].nil? + self.severities = resource[:severities] unless resource[:severities].nil? end def destroy