From acf12c2de1e3a67d6d8d12bd81502134eb236adf Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 18 Jul 2022 08:14:01 -0400 Subject: [PATCH] Common: Simplify _make_credentials() --- monkey/common/credentials/credentials.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/monkey/common/credentials/credentials.py b/monkey/common/credentials/credentials.py index 64dbf7bcc..93390f212 100644 --- a/monkey/common/credentials/credentials.py +++ b/monkey/common/credentials/credentials.py @@ -57,13 +57,11 @@ class CredentialsSchema(Schema): if not any(credentials.values()): raise InvalidCredentialsError("At least one credentials component must be defined") - parsed_credentials = { + return { key: CredentialsSchema._build_credential_component(credential_component_mapping) for key, credential_component_mapping in credentials.items() } - return parsed_credentials - @staticmethod def _build_credential_component( credential_component: CredentialComponentMapping,