Skip to content

Commit

Permalink
keep check with booleans from provisioning every run
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambert121 committed Mar 13, 2013
1 parent 4794b9e commit 80b7f03
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions lib/puppet/provider/sensu_check/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ def handlers=(value)
end

def aggregate
conf['checks'][resource[:realname]]['aggregate']
case conf['checks'][resource[:realname]]['aggregate']
when true
:true
when false
:false
else
conf['checks'][resource[:realname]]['aggregate']
end
end

def aggregate=(value)
Expand Down Expand Up @@ -146,7 +153,14 @@ def high_flap_threshold=(value)
end

def standalone
conf['checks'][resource[:realname]]['standalone']
case conf['checks'][resource[:realname]]['standalone']
when true
:true
when false
:false
else
conf['checks'][resource[:realname]]['standalone']
end
end

def standalone=(value)
Expand Down

0 comments on commit 80b7f03

Please sign in to comment.