summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCesar Francisco San Nicolas Martinez <csannico@redhat.com>2022-10-11 14:48:47 +0200
committerGitHub <noreply@github.com>2022-10-11 14:48:47 +0200
commit22b6ae6903ab1b959560e4fef91001aa8a00cb8c (patch)
treeead12af2644fadfe059c9599a627d339c92ac5d8
parentMerge pull request #12997 from kurokobo/docs-execution-node (diff)
parentSending field_name in AttributeError (diff)
downloadawx-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__.py2
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: