mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
always specify cloud: True/False
for JT/job credential summary
This commit is contained in:
parent
c944f37637
commit
813a3be2b8
@ -3059,7 +3059,8 @@ class JobTemplateSerializer(JobTemplateMixin, UnifiedJobTemplateSerializer, JobO
|
||||
'id': cred.pk,
|
||||
'name': cred.name,
|
||||
'description': cred.description,
|
||||
'kind': cred.kind
|
||||
'kind': cred.kind,
|
||||
'cloud': cred.credential_type.kind == 'cloud'
|
||||
}
|
||||
if self.version > 1:
|
||||
summarized_cred['credential_type_id'] = cred.credential_type_id
|
||||
@ -3195,7 +3196,8 @@ class JobSerializer(UnifiedJobSerializer, JobOptionsSerializer):
|
||||
'id': cred.pk,
|
||||
'name': cred.name,
|
||||
'description': cred.description,
|
||||
'kind': cred.kind
|
||||
'kind': cred.kind,
|
||||
'cloud': cred.credential_type.kind == 'cloud'
|
||||
}
|
||||
if self.version > 1:
|
||||
summarized_cred['credential_type_id'] = cred.credential_type_id
|
||||
|
Loading…
Reference in New Issue
Block a user