* fixed a wrong IF statement that prevented issues from appending

This commit is contained in:
maor.rayzin 2018-11-28 12:53:58 +02:00
parent 83ea8af9e0
commit 7d94185a10
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class AWSExporter(Exporter):
return True return True
for machine in issues_list: for machine in issues_list:
for issue in issues_list[machine]: for issue in issues_list[machine]:
if not issue.get('aws_instance_id', None): if issue.get('aws_instance_id', None):
findings_list.append(AWSExporter._prepare_finding(issue)) findings_list.append(AWSExporter._prepare_finding(issue))
if not AWSExporter._send_findings(findings_list, AWSExporter._get_aws_keys()): if not AWSExporter._send_findings(findings_list, AWSExporter._get_aws_keys()):

View File

@ -754,7 +754,7 @@ class ReportService:
def get_active_exporters(): def get_active_exporters():
# This function should be in another module in charge of building a list of active exporters # This function should be in another module in charge of building a list of active exporters
exporters_list = [] exporters_list = []
if str(load_env_from_file()) == AWS: if str(load_env_from_file()) == 'standard':
exporters_list.append(AWSExporter) exporters_list.append(AWSExporter)
return exporters_list return exporters_list