prowler-cloud / prowler

Prowler is an Open Source Security tool for AWS, Azure, GCP and Kubernetes to do security assessments, audits, incident response, compliance, continuous monitoring, hardening and forensics readiness. Includes CIS, NIST 800, NIST CSF, CISA, FedRAMP, PCI-DSS, GDPR, HIPAA, FFIEC, SOC2, GXP, Well-Architected Security, ENS and more
https://prowler.com
Apache License 2.0
10.53k stars 1.51k forks source link

fix: handle empty input regions #4841

Closed sergargar closed 3 weeks ago

sergargar commented 3 weeks ago

Description

Handle empty input regions to solve the following TypeError: 2024-08-22 16:43:11,270 [File: provider.py:175] [Module: provider] CRITICAL: TypeError[171]: 'NoneType' object is not iterable

Checklist

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.15%. Comparing base (57f1fa5) to head (526e8b6). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #4841 +/- ## ========================================== - Coverage 89.17% 89.15% -0.03% ========================================== Files 933 933 Lines 28567 28567 ========================================== - Hits 25475 25469 -6 - Misses 3092 3098 +6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 3 weeks ago

💚 All backports created successfully

Status Branch Result
✅ v4.3

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details