mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Fix issue AC-677, field is referenced incorrectly causing exception
This commit is contained in:
parent
f7081074d0
commit
1388ad4cc0
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user