mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-11 15:25:10 +00:00
chore: Move shared to lib/ for AWS (#1321)
* chore: Move shared to lib/ * chore: Move shared to lib/ for AWS Co-authored-by: Sergio Garcia <38561120+sergargar@users.noreply.github.com>
This commit is contained in:
@@ -150,7 +150,8 @@ def recover_checks_from_provider(provider: str, service: str = None) -> list:
|
||||
for module_name in modules:
|
||||
# Format: "providers.{provider}.services.{service}.{check_name}.{check_name}"
|
||||
check_name = module_name.name
|
||||
if check_name.count(".") == 5:
|
||||
# We need to exclude common shared libraries in services
|
||||
if check_name.count(".") == 5 and "lib" not in check_name:
|
||||
checks.append(check_name)
|
||||
return checks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user