Skip to content

Commit

Permalink
fix linting issues around undefined var
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoubl3j committed Jan 8, 2025
1 parent 05b4a44 commit 69481ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions awx/main/models/credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', []):
Expand Down

0 comments on commit 69481ac

Please sign in to comment.