diff options
author | Cesar Francisco San Nicolas Martinez <csannico@redhat.com> | 2022-10-11 14:48:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-11 14:48:47 +0200 |
commit | 22b6ae6903ab1b959560e4fef91001aa8a00cb8c (patch) | |
tree | ead12af2644fadfe059c9599a627d339c92ac5d8 | |
parent | Merge pull request #12997 from kurokobo/docs-execution-node (diff) | |
parent | Sending field_name in AttributeError (diff) | |
download | awx-22b6ae6903ab1b959560e4fef91001aa8a00cb8c.tar.xz awx-22b6ae6903ab1b959560e4fef91001aa8a00cb8c.zip |
Merge pull request #13031 from ansible/attribute_error_field
Sending field_name in AttributeError
-rw-r--r-- | awx/main/models/credential/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/awx/main/models/credential/__init__.py b/awx/main/models/credential/__init__.py index 275ee43eec..cee657da01 100644 --- a/awx/main/models/credential/__init__.py +++ b/awx/main/models/credential/__init__.py @@ -282,7 +282,7 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique, ResourceMixin): return field['default'] if 'default' in kwargs: return kwargs['default'] - raise AttributeError + raise AttributeError(field_name) if field_name in self.inputs: return self.inputs[field_name] if 'default' in kwargs: |