fix(Provider): PRWLR-5153 fix provider initialization when testing connection (#69)

This commit is contained in:
Víctor Fernández Poyatos
2024-11-04 17:20:31 +01:00
committed by GitHub
parent 3de2c47c56
commit e3ae44d033
+1 -1
View File
@@ -115,7 +115,7 @@ def prowler_provider_connection_test(provider: Provider) -> Connection:
Connection: A connection object representing the result of the connection test for the specified provider.
"""
prowler_provider = return_prowler_provider(provider)
prowler_provider_kwargs = get_prowler_provider_kwargs(provider)
prowler_provider_kwargs = provider.secret.secret
return prowler_provider.test_connection(
**prowler_provider_kwargs, provider_id=provider.uid, raise_on_exception=False
)