diff --git a/prowler/providers/image/image_provider.py b/prowler/providers/image/image_provider.py index d37781b721..c754585f30 100644 --- a/prowler/providers/image/image_provider.py +++ b/prowler/providers/image/image_provider.py @@ -882,10 +882,7 @@ class ImageProvider(Provider): f"{total_images} {'image' if total_images == 1 else 'images'})\n" ) for repo, tags in repos_tags.items(): - print( - f" {Fore.YELLOW}{repo}{Style.RESET_ALL} " - f"({len(tags)} tags)" - ) + print(f" {Fore.YELLOW}{repo}{Style.RESET_ALL} " f"({len(tags)} tags)") print(f" {', '.join(tags)}") print() diff --git a/tests/providers/image/image_provider_test.py b/tests/providers/image/image_provider_test.py index 281a566608..5e3f7acbed 100644 --- a/tests/providers/image/image_provider_test.py +++ b/tests/providers/image/image_provider_test.py @@ -445,7 +445,9 @@ class TestImageProviderRegistryAuth: assert provider.auth_method == "Docker login" - @patch.dict(os.environ, {"REGISTRY_USERNAME": "envuser", "REGISTRY_PASSWORD": "envpass"}) + @patch.dict( + os.environ, {"REGISTRY_USERNAME": "envuser", "REGISTRY_PASSWORD": "envpass"} + ) def test_basic_auth_from_env_vars(self): """Test that env vars are used as fallback for basic auth.""" provider = _make_provider() @@ -462,7 +464,9 @@ class TestImageProviderRegistryAuth: assert provider.registry_token == "env-token" assert provider.auth_method == "Registry token" - @patch.dict(os.environ, {"REGISTRY_USERNAME": "envuser", "REGISTRY_PASSWORD": "envpass"}) + @patch.dict( + os.environ, {"REGISTRY_USERNAME": "envuser", "REGISTRY_PASSWORD": "envpass"} + ) def test_explicit_params_override_env_vars(self): """Test that explicit params take precedence over env vars.""" provider = _make_provider(