mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 10:08:10 -03:30
Return passwords_needed_to_start when not provided via POST to start job.
This commit is contained in:
@@ -973,7 +973,8 @@ class JobStart(generics.RetrieveAPIView):
|
||||
if obj.can_start:
|
||||
result = obj.start(**request.DATA)
|
||||
if not result:
|
||||
return Response(status=400)
|
||||
data = dict(passwords_needed_to_start=obj.get_passwords_needed_to_start())
|
||||
return Response(data, status=400)
|
||||
else:
|
||||
return Response(status=202)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user