* fixed a wrong IF statement that prevented issues from appending
This commit is contained in:
parent
83ea8af9e0
commit
7d94185a10
|
@ -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()):
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue