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

Merge pull request #1246 from AlanCoding/cred_total_int

Fix bug from new credential property
This commit is contained in:
Alan Rominger 2018-04-05 08:23:03 -04:00 committed by GitHub
commit 596523b2fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3201,7 +3201,7 @@ class JobSerializer(UnifiedJobSerializer, JobOptionsSerializer):
data.setdefault('project', job_template.project.pk)
data.setdefault('playbook', job_template.playbook)
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('limit', job_template.limit)
data.setdefault('verbosity', job_template.verbosity)