Skip to content

Commit

Permalink
Fix JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
christophetd committed Mar 2, 2023
1 parent e8147e1 commit 4ae5645
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions guarddog/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ def _scan(identifier, version, rules, exclude_rules, output_format, exit_non_zer

if output_format == "json":
import json as js
# print(js.dumps(results))
return js.dumps(results)
print(js.dumps(results))
else:
print_scan_results(results, identifier)

Expand Down

1 comment on commit 4ae5645

@christophetd
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes #188

Please sign in to comment.