mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +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,
|
||||
'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