Skip to content

Commit 9c48b1d

Browse files
committed
singular check in a file
1 parent dfcec1e commit 9c48b1d

File tree

1 file changed

+2
-2
lines changed
  • lib/puppet/provider/sensu_check_config

1 file changed

+2
-2
lines changed

lib/puppet/provider/sensu_check_config/json.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ def initialize(*args)
1212

1313
def conf
1414
begin
15-
@conf ||= JSON.parse(File.read("/etc/sensu/conf.d/checks_#{resource[:realname]}.json"))
15+
@conf ||= JSON.parse(File.read("/etc/sensu/conf.d/check_#{resource[:realname]}.json"))
1616
rescue
1717
@conf ||= {}
1818
end
1919
end
2020

2121
def flush
22-
File.open("/etc/sensu/conf.d/checks_#{resource[:realname]}.json", 'w') do |f|
22+
File.open("/etc/sensu/conf.d/check_#{resource[:realname]}.json", 'w') do |f|
2323
f.puts JSON.pretty_generate(conf)
2424
end
2525
end

0 commit comments

Comments
 (0)