Skip to content

Commit

Permalink
if udp handler socket defined -> to_i
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambert121 committed Sep 26, 2013
1 parent 74489f6 commit b04920a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/puppet/provider/sensu_handler/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ def socket

def socket=(value)
@conf['handlers'][resource[:name]]['socket'] = value
if @conf['handlers'][resource[:name]]['socket'].has_key('port')
@conf['handlers'][resource[:name]]['socket']['port'] = @conf['handlers'][resource[:name]]['socket']['port'].to_i
end
end

def handlers
Expand Down

0 comments on commit b04920a

Please sign in to comment.