Skip to content

Commit

Permalink
Merge pull request #45 from jlambert121/provider_update
Browse files Browse the repository at this point in the history
fix for setting handler parameters first run
  • Loading branch information
jamtur01 committed Mar 11, 2013
2 parents f357266 + 5f38034 commit 8b244f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/puppet/provider/sensu_handler/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b244f6

Please sign in to comment.