mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 00:08:44 -03:30
Fix issue AC-677, field is referenced incorrectly causing exception
This commit is contained in:
@@ -270,7 +270,7 @@ def model_to_dict(obj):
|
||||
attr_d = {}
|
||||
for field in obj._meta.fields:
|
||||
# FIXME: This needs to be aware of fields not to be included in the AS delta log
|
||||
if field not in Credential.PASSWORD_FIELDS:
|
||||
if field.name not in Credential.PASSWORD_FIELDS:
|
||||
attr_d[field.name] = str(getattr(obj, field.name, None))
|
||||
else:
|
||||
attr_d[field.name] = "hidden"
|
||||
|
||||
Reference in New Issue
Block a user