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

Change-Id: Ie7a2b839f646572d0dcff808b7466d176937b16e
Closes-Bug: 1648455
This commit is contained in:
Marianne Linhares Monteiro 2017-02-17 16:58:13 -03:00
parent be50a9a9fb
commit 67a0d8d272
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 = [