diff options
Diffstat (limited to 'lib/chef/handler/json_file.rb')
-rw-r--r-- | lib/chef/handler/json_file.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/chef/handler/json_file.rb b/lib/chef/handler/json_file.rb index 91bd6e1559..9b6a3a862d 100644 --- a/lib/chef/handler/json_file.rb +++ b/lib/chef/handler/json_file.rb @@ -22,10 +22,9 @@ require "chef/resource/directory" class Chef class Handler class JsonFile < ::Chef::Handler - attr_reader :config - def initialize(config={}) + def initialize(config = {}) @config = config @config[:path] ||= "/var/chef/reports" @config @@ -41,7 +40,6 @@ class Chef build_report_dir savetime = Time.now.strftime("%Y%m%d%H%M%S") File.open(File.join(config[:path], "chef-run-report-#{savetime}.json"), "w") do |file| - #ensure start time and end time are output in the json properly in the event activesupport happens to be on the system run_data = data run_data[:start_time] = run_data[:start_time].to_s @@ -57,7 +55,6 @@ class Chef File.chmod(00700, config[:path]) end end - end end end |