forked from p34709852/monkey
* 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
|
||||
for machine in issues_list:
|
||||
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))
|
||||
|
||||
if not AWSExporter._send_findings(findings_list, AWSExporter._get_aws_keys()):
|
||||
|
|
|
@ -754,7 +754,7 @@ class ReportService:
|
|||
def get_active_exporters():
|
||||
# This function should be in another module in charge of building a list of active exporters
|
||||
exporters_list = []
|
||||
if str(load_env_from_file()) == AWS:
|
||||
if str(load_env_from_file()) == 'standard':
|
||||
exporters_list.append(AWSExporter)
|
||||
return exporters_list
|
||||
|
||||
|
|
Loading…
Reference in New Issue