Skip to content

Commit 0038b1e

Browse files
committedAug 3, 2018
Only write to blackbox mapping if in interactive mode
1 parent b80ce4e commit 0038b1e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎pyt/vulnerabilities/vulnerabilities.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,9 @@ def find_vulnerabilities(
540540
vulnerabilities,
541541
nosec_lines
542542
)
543-
with open(blackbox_mapping_file, 'w') as outfile:
544-
json.dump(blackbox_mapping, outfile, indent=4)
543+
544+
if ui_mode == UImode.INTERACTIVE:
545+
with open(blackbox_mapping_file, 'w') as outfile:
546+
json.dump(blackbox_mapping, outfile, indent=4)
547+
545548
return vulnerabilities

0 commit comments

Comments
 (0)
Please sign in to comment.