Skip to content

Commit 96860c1

Browse files
author
Josh Russell
committed
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
1 parent ad01611 commit 96860c1

File tree

1 file changed

+1
-1
lines changed
  • lib/puppet/provider/sensu_check

1 file changed

+1
-1
lines changed

lib/puppet/provider/sensu_check/json.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def notification=(value)
130130
end
131131

132132
def refresh
133-
conf['checks'][resource[:name]]['refresh']
133+
conf['checks'][resource[:name]]['refresh'].to_s
134134
end
135135

136136
def refresh=(value)

0 commit comments

Comments
 (0)