From 9c48b1db3f4d1e3f0fd8d5366e0b1993cf966e6b Mon Sep 17 00:00:00 2001 From: Justin Lambert Date: Tue, 26 Feb 2013 14:52:27 -0700 Subject: [PATCH] singular check in a file --- lib/puppet/provider/sensu_check_config/json.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet/provider/sensu_check_config/json.rb b/lib/puppet/provider/sensu_check_config/json.rb index 943031d8bb..e0bbaead42 100644 --- a/lib/puppet/provider/sensu_check_config/json.rb +++ b/lib/puppet/provider/sensu_check_config/json.rb @@ -12,14 +12,14 @@ def initialize(*args) def conf begin - @conf ||= JSON.parse(File.read("/etc/sensu/conf.d/checks_#{resource[:realname]}.json")) + @conf ||= JSON.parse(File.read("/etc/sensu/conf.d/check_#{resource[:realname]}.json")) rescue @conf ||= {} end end def flush - File.open("/etc/sensu/conf.d/checks_#{resource[:realname]}.json", 'w') do |f| + File.open("/etc/sensu/conf.d/check_#{resource[:realname]}.json", 'w') do |f| f.puts JSON.pretty_generate(conf) end end