From d46981b47d1e0156aa6fc9d8879de796a428c33d Mon Sep 17 00:00:00 2001 From: Telles Nobrega Date: Tue, 16 Jan 2018 16:24:40 -0300 Subject: [PATCH] Changing expected value to job_template_id Since we are only expecting one job_template_id does not make sense to use job_templates_id name here Change-Id: I2c1425dce3db2b150f798e3c10f7ad5f798226d3 --- sahara/service/api/v2/jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sahara/service/api/v2/jobs.py b/sahara/service/api/v2/jobs.py index f814fb773a..38eba85be6 100644 --- a/sahara/service/api/v2/jobs.py +++ b/sahara/service/api/v2/jobs.py @@ -30,7 +30,7 @@ LOG = logging.getLogger(__name__) def execute_job(data): # Elements common to all job types - job_templates_id = data['job_templates_id'] + job_template_id = data['job_template_id'] cluster_id = data['cluster_id'] configs = data.get('job_configs', {}) interface = data.get('interface', {}) @@ -49,7 +49,7 @@ def execute_job(data): configs['job_execution_info'] = job_execution_info job_ex_dict = {'input_id': input_id, 'output_id': output_id, - 'job_id': job_templates_id, 'cluster_id': cluster_id, + 'job_id': job_template_id, 'cluster_id': cluster_id, 'info': {'status': edp.JOB_STATUS_PENDING}, 'job_configs': configs, 'extra': {}, 'interface': interface}