Skip to content

Commit

Permalink
Only write to blackbox mapping if in interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinHock committed Aug 3, 2018
1 parent b80ce4e commit 0038b1e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyt/vulnerabilities/vulnerabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,9 @@ def find_vulnerabilities(
vulnerabilities,
nosec_lines
)
with open(blackbox_mapping_file, 'w') as outfile:
json.dump(blackbox_mapping, outfile, indent=4)

if ui_mode == UImode.INTERACTIVE:
with open(blackbox_mapping_file, 'w') as outfile:
json.dump(blackbox_mapping, outfile, indent=4)

return vulnerabilities

0 comments on commit 0038b1e

Please sign in to comment.