mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 15:06:02 -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 = {}
|
attr_d = {}
|
||||||
for field in obj._meta.fields:
|
for field in obj._meta.fields:
|
||||||
# FIXME: This needs to be aware of fields not to be included in the AS delta log
|
# 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))
|
attr_d[field.name] = str(getattr(obj, field.name, None))
|
||||||
else:
|
else:
|
||||||
attr_d[field.name] = "hidden"
|
attr_d[field.name] = "hidden"
|
||||||
|
|||||||
Reference in New Issue
Block a user