Skip to content

Commit

Permalink
force integers on check params
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambert121 committed Apr 5, 2013
1 parent 381438d commit a66377d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/sensu_check/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ def refresh
end

def refresh=(value)
conf['checks'][resource[:name]]['refresh'] = value
conf['checks'][resource[:name]]['refresh'] = value.to_i
end

def occurrences
conf['checks'][resource[:name]]['occurrences']
end

def occurrences=(value)
conf['checks'][resource[:name]]['occurrences'] = value
conf['checks'][resource[:name]]['occurrences'] = value.to_i
end

def low_flap_threshold
Expand Down

0 comments on commit a66377d

Please sign in to comment.