mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
don't show summary_fields.credential.credential_type_id on /api/v1/
This commit is contained in:
parent
78f6907c1b
commit
83ecea2377
@ -1964,8 +1964,10 @@ class InventorySourceOptionsSerializer(BaseSerializer):
|
||||
if cred:
|
||||
summary_fields['credential'] = {
|
||||
'id': cred.id, 'name': cred.name, 'description': cred.description,
|
||||
'kind': cred.kind, 'cloud': True, 'credential_type_id': cred.credential_type_id
|
||||
'kind': cred.kind, 'cloud': True
|
||||
}
|
||||
if self.version > 1:
|
||||
summary_fields['credential']['credential_type_id'] = cred.credential_type_id
|
||||
else:
|
||||
summary_fields.pop('credential')
|
||||
return summary_fields
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user