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