From 69481ac6a23c79666e656e430349fe610992cf85 Mon Sep 17 00:00:00 2001 From: thedoubl3j Date: Tue, 7 Jan 2025 14:51:08 -0500 Subject: [PATCH] fix linting issues around undefined var --- awx/main/models/credential.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/awx/main/models/credential.py b/awx/main/models/credential.py index 81a598310292..17113427fccb 100644 --- a/awx/main/models/credential.py +++ b/awx/main/models/credential.py @@ -462,8 +462,7 @@ def askable_fields(self): def plugin(self): if self.kind != 'external': raise AttributeError('plugin') - [plugin] = [plugin for ns, plugin in credential_plugins.items() if ns == self.namespace] - return plugin + return ManagedCredentialType.registry.get(self.namespace, None) def default_for_field(self, field_id): for field in self.inputs.get('fields', []):