From 67a0d8d2729671fce50fd99c5bf106c7c39863b5 Mon Sep 17 00:00:00 2001 From: Marianne Linhares Monteiro Date: Fri, 17 Feb 2017 16:58:13 -0300 Subject: [PATCH] Main binary should not be allowed for some job types in Horizon Change-Id: Ie7a2b839f646572d0dcff808b7466d176937b16e Closes-Bug: 1648455 --- .../data_processing/jobs/job_templates/workflows/create.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sahara_dashboard/content/data_processing/jobs/job_templates/workflows/create.py b/sahara_dashboard/content/data_processing/jobs/job_templates/workflows/create.py index 822bd87..42a74d7 100644 --- a/sahara_dashboard/content/data_processing/jobs/job_templates/workflows/create.py +++ b/sahara_dashboard/content/data_processing/jobs/job_templates/workflows/create.py @@ -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 = [