send the id of the credential to the job execution, not the credential object itself

This commit is contained in:
Chris Meyers 2015-04-27 09:47:48 -04:00
parent f7355ae5f3
commit d0f05ac2cd

View File

@ -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)