mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Merge pull request #2269 from ryanpetrello/no-inventory-credentials-v1
always specify `cloud: True/False` for JT/job credential summary
This commit is contained in:
commit
008a3a0d01
@ -3059,7 +3059,8 @@ class JobTemplateSerializer(JobTemplateMixin, UnifiedJobTemplateSerializer, JobO
|
|||||||
'id': cred.pk,
|
'id': cred.pk,
|
||||||
'name': cred.name,
|
'name': cred.name,
|
||||||
'description': cred.description,
|
'description': cred.description,
|
||||||
'kind': cred.kind
|
'kind': cred.kind,
|
||||||
|
'cloud': cred.credential_type.kind == 'cloud'
|
||||||
}
|
}
|
||||||
if self.version > 1:
|
if self.version > 1:
|
||||||
summarized_cred['credential_type_id'] = cred.credential_type_id
|
summarized_cred['credential_type_id'] = cred.credential_type_id
|
||||||
@ -3195,7 +3196,8 @@ class JobSerializer(UnifiedJobSerializer, JobOptionsSerializer):
|
|||||||
'id': cred.pk,
|
'id': cred.pk,
|
||||||
'name': cred.name,
|
'name': cred.name,
|
||||||
'description': cred.description,
|
'description': cred.description,
|
||||||
'kind': cred.kind
|
'kind': cred.kind,
|
||||||
|
'cloud': cred.credential_type.kind == 'cloud'
|
||||||
}
|
}
|
||||||
if self.version > 1:
|
if self.version > 1:
|
||||||
summarized_cred['credential_type_id'] = cred.credential_type_id
|
summarized_cred['credential_type_id'] = cred.credential_type_id
|
||||||
|
Loading…
Reference in New Issue
Block a user