Skip to content

Commit

Permalink
Prevent re-running sensu::check every puppet run
Browse files Browse the repository at this point in the history
If sensu::check is called with refresh attribute set to an integer, puppet refreshes the sensu::check resources every run
  • Loading branch information
Josh Russell committed May 17, 2013
1 parent ad01611 commit 96860c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/sensu_check/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def notification=(value)
end

def refresh
conf['checks'][resource[:name]]['refresh']
conf['checks'][resource[:name]]['refresh'].to_s
end

def refresh=(value)
Expand Down

0 comments on commit 96860c1

Please sign in to comment.