mirror of
https://github.com/inspec/inspec
synced 2025-02-17 14:38:43 +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)
|
profile = Inspec::Profile.for_target(target, o)
|
||||||
dst = o[:output].to_s
|
dst = o[:output].to_s
|
||||||
if dst.empty?
|
if dst.empty?
|
||||||
puts JSON.pretty_generate(profile.info)
|
puts JSON.dump(profile.info)
|
||||||
else
|
else
|
||||||
if File.exist? dst
|
if File.exist? dst
|
||||||
puts "----> updating #{dst}"
|
puts "----> updating #{dst}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue