mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 03:31:10 -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)
|
||||
|
||||
kv = {
|
||||
'credential': serializer.object.credential,
|
||||
'credential': serializer.object.credential.pk,
|
||||
'extra_vars': serializer.object.extra_vars
|
||||
}
|
||||
new_job = obj.create_unified_job(**kv)
|
||||
|
||||
Reference in New Issue
Block a user