1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

fix bug from new credential property

This commit is contained in:
AlanCoding 2018-04-05 08:01:26 -04:00
parent 16732e52f2
commit 50794452c8
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -3201,7 +3201,7 @@ class JobSerializer(UnifiedJobSerializer, JobOptionsSerializer):
data.setdefault('project', job_template.project.pk) data.setdefault('project', job_template.project.pk)
data.setdefault('playbook', job_template.playbook) data.setdefault('playbook', job_template.playbook)
if job_template.credential: if job_template.credential:
data.setdefault('credential', job_template.credential.pk) data.setdefault('credential', job_template.credential)
data.setdefault('forks', job_template.forks) data.setdefault('forks', job_template.forks)
data.setdefault('limit', job_template.limit) data.setdefault('limit', job_template.limit)
data.setdefault('verbosity', job_template.verbosity) data.setdefault('verbosity', job_template.verbosity)