mirror of
https://github.com/inspec/inspec
synced 2024-11-24 05:33:17 +00:00
Merge pull request #548 from chef/dr/no-pretty
dont generate pretty json by default
This commit is contained in:
commit
5c3478ba69
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class Inspec::InspecCLI < Inspec::BaseCLI # rubocop:disable Metrics/ClassLength
|
|||
profile = Inspec::Profile.for_target(target, o)
|
||||
dst = o[:output].to_s
|
||||
if dst.empty?
|
||||
puts JSON.pretty_generate(profile.info)
|
||||
puts JSON.dump(profile.info)
|
||||
else
|
||||
if File.exist? dst
|
||||
puts "----> updating #{dst}"
|
||||
|
|
Loading…
Reference in a new issue