Merge "Main binary should not be allowed for some job types in Horizon"

This commit is contained in:
Jenkins 2017-03-29 18:40:12 +00:00 committed by Gerrit Code Review
commit 9402320c72
1 changed files with 3 additions and 1 deletions

View File

@ -237,7 +237,9 @@ class CreateJob(workflows.Workflow):
lib_locations.append(context.get(k))
if context.get("main_binary", None):
main_locations.append(context["main_binary"])
job_type = context.get("job_type", None)
if job_type not in ["Java", "MapReduce"]:
main_locations.append(context["main_binary"])
argument_ids = json.loads(context['argument_ids'])
interface = [