mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
send the id of the credential to the job execution, not the credential object itself
This commit is contained in:
parent
f7355ae5f3
commit
d0f05ac2cd
@ -1450,7 +1450,7 @@ class JobTemplateLaunch(RetrieveAPIView, GenericAPIView):
|
||||
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
kv = {
|
||||
'credential': serializer.object.credential,
|
||||
'credential': serializer.object.credential.pk,
|
||||
'extra_vars': serializer.object.extra_vars
|
||||
}
|
||||
new_job = obj.create_unified_job(**kv)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user