Unverified Commit 5fcbb917 authored by Tim Smith's avatar Tim Smith Committed by GitHub
Browse files

Merge pull request #11442 from chef/mp/show-json-file-report-path

Make json-file compliance report path  visible
parents 22dc63b4 d45e26c4
require_relative "../../json_compat"
require_relative "../../log"
class Chef
module Compliance
......@@ -9,8 +10,8 @@ class Chef
end
def send_report(report)
Chef::Log.info "Writing compliance report to #{@path}"
FileUtils.mkdir_p(File.dirname(@path), mode: 0700)
File.write(@path, Chef::JSONCompat.to_json(report))
end
......
......@@ -249,7 +249,6 @@ class Chef
when "json-file"
require_relative "reporter/json_file"
path = node.dig("audit", "json_file", "location")
logger.info "Writing compliance report to #{path}"
Chef::Compliance::Reporter::JsonFile.new(file: path)
when "audit-enforcer"
require_relative "reporter/compliance_enforcer"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment