mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Vault credential should have ssh type for v1 job templates (#119)
This commit is contained in:
parent
3dea02ceac
commit
98d2ca5b16
@ -2434,6 +2434,12 @@ class JobTemplateMixin(object):
|
||||
if obj.survey_spec is not None and ('name' in obj.survey_spec and 'description' in obj.survey_spec):
|
||||
d['survey'] = dict(title=obj.survey_spec['name'], description=obj.survey_spec['description'])
|
||||
d['recent_jobs'] = self._recent_jobs(obj)
|
||||
|
||||
# TODO: remove in 3.3
|
||||
if self.version == 1 and 'vault_credential' in d:
|
||||
if d['vault_credential'].get('kind','') == 'vault':
|
||||
d['vault_credential']['kind'] = 'ssh'
|
||||
|
||||
return d
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user