mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 17:07:33 -02:30
AC-1191 Fix limit parameter on callback jobs to intersect with any limit specified on the job template.
This commit is contained in:
@@ -1224,7 +1224,7 @@ class JobTemplateCallback(GenericAPIView):
|
||||
data = dict(msg='Cannot start automatically, user input required!')
|
||||
# FIXME: Log!
|
||||
return Response(data, status=status.HTTP_400_BAD_REQUEST)
|
||||
limit = ':'.join(filter(None, [job_template.limit, host.name]))
|
||||
limit = ':&'.join(filter(None, [job_template.limit, host.name]))
|
||||
job = job_template.create_job(limit=limit, launch_type='callback')
|
||||
result = job.signal_start()
|
||||
if not result:
|
||||
|
||||
Reference in New Issue
Block a user