summaryrefslogtreecommitdiff
path: root/chef/lib/chef/handler/json_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/lib/chef/handler/json_file.rb')
-rw-r--r--chef/lib/chef/handler/json_file.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/handler/json_file.rb b/chef/lib/chef/handler/json_file.rb
index 580ede671b..8bac5232d0 100644
--- a/chef/lib/chef/handler/json_file.rb
+++ b/chef/lib/chef/handler/json_file.rb
@@ -41,7 +41,7 @@ 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|
- file.puts JSON.pretty_generate(data)
+ file.puts Chef::JSON.to_json_pretty(data)
end
end