Incorrect Ident 35/39735/1
authorlhinds <lhinds@redhat.com>
Mon, 21 Aug 2017 09:23:43 +0000 (10:23 +0100)
committerlhinds <lhinds@redhat.com>
Mon, 21 Aug 2017 09:23:43 +0000 (10:23 +0100)
Failure = True is incorrectly formnatted, meaning the failure
is not registered within the conditonal check

Change-Id: Ib648c9d763fe1d9cbcc69dfe2f27c2aad89a68cf
Signed-off-by: lhinds <lhinds@redhat.com>
anteater/src/patch_scan.py

index 9f15556..0bc4e72 100644 (file)
@@ -131,7 +131,7 @@ def scan_patch(project, patch_file, binary_list, file_audit_list,
                     logger.error('Flagged Content: %s', line.rstrip())
                     logger.error('Matched Regular Exp: %s', regex)
                     logger.error('Rationale: %s', desc.rstrip())
-                failure = True
+                    failure = True
                 with open(reports_dir + "contents_" + project + ".log",
                           "a") as gate_report:
                     gate_report.write('File contains violation: {0}\n'.