We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.0.0
13.1.31
Ubuntu 14.04.5
Trying to use json-file reporter.
json-file
{ "audit": { "reporter": ["chef-server-automate", "json-file"], "insecure": true, "profiles": [ { "name": "linux", "compliance": "admin/linux" } ] } }
The file saved to disk should contain the report in JSON format.
The file saved to disk contains the ruby hash of the report.
The bug is in this line.
https://github.com/chef-cookbooks/audit/blob/v4.0.0/libraries/reporters/json_file.rb#L19
It should be changed to the following.
json_file.puts(JSON.generate(report))
The text was updated successfully, but these errors were encountered:
@jeremiahsnapp Thank you for reporting this issue! Are you opening a PR to fix this?
Sorry, something went wrong.
I just submitted PR #246
chris-rock
No branches or pull requests
Cookbook version
4.0.0
Chef-client version
13.1.31
Platform Details
Ubuntu 14.04.5
Scenario:
Trying to use
json-file
reporter.Steps to Reproduce:
Expected Result:
The file saved to disk should contain the report in JSON format.
Actual Result:
The file saved to disk contains the ruby hash of the report.
Reason:
The bug is in this line.
https://github.com/chef-cookbooks/audit/blob/v4.0.0/libraries/reporters/json_file.rb#L19
It should be changed to the following.
The text was updated successfully, but these errors were encountered: