allow JT start on callback if mandatory survey variables are there

This commit is contained in:
AlanCoding
2017-02-03 20:21:56 -05:00
parent b822ef14c4
commit da887241aa
2 changed files with 12 additions and 3 deletions

View File

@@ -2702,7 +2702,7 @@ class JobTemplateCallback(GenericAPIView):
return Response(data, status=status.HTTP_400_BAD_REQUEST)
else:
host = list(matching_hosts)[0]
if not job_template.can_start_without_user_input():
if not job_template.can_start_without_user_input(callback_extra_vars=extra_vars):
data = dict(msg=_('Cannot start automatically, user input required!'))
return Response(data, status=status.HTTP_400_BAD_REQUEST)
limit = host.name