From 96860c199bee7a5d3ed60b3dbdf4b4e8e23e4efe Mon Sep 17 00:00:00 2001 From: Josh Russell Date: Thu, 16 May 2013 21:46:53 -0300 Subject: [PATCH] Prevent re-running sensu::check every puppet run If sensu::check is called with refresh attribute set to an integer, puppet refreshes the sensu::check resources every run --- lib/puppet/provider/sensu_check/json.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/sensu_check/json.rb b/lib/puppet/provider/sensu_check/json.rb index b61ddb78ec..b7fb9a0447 100644 --- a/lib/puppet/provider/sensu_check/json.rb +++ b/lib/puppet/provider/sensu_check/json.rb @@ -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)