mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
fix(output): No resources (#1320)
This commit is contained in:
@@ -56,7 +56,6 @@ def report(check_findings, output_options, audit_info):
|
||||
)
|
||||
|
||||
if file_descriptors:
|
||||
|
||||
# sending the finding to input options
|
||||
if "csv" in file_descriptors:
|
||||
finding_output = Check_Output_CSV(
|
||||
@@ -92,9 +91,9 @@ def report(check_findings, output_options, audit_info):
|
||||
finding.region, finding_output, audit_info.audit_session
|
||||
)
|
||||
else: # No service resources in the whole account
|
||||
color = set_report_color("PASS")
|
||||
color = set_report_color("WARNING")
|
||||
if not output_options.is_quiet:
|
||||
print(f"{color}PASS{Style.RESET_ALL} There are no resources.")
|
||||
print(f"\t{color}INFO{Style.RESET_ALL} There are no resources")
|
||||
|
||||
if file_descriptors:
|
||||
# Close all file descriptors
|
||||
|
||||
Reference in New Issue
Block a user