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
This commit is contained in:
Telles Nobrega 2018-01-16 16:24:40 -03:00
parent 4492b1d05c
commit d46981b47d

View File

@ -30,7 +30,7 @@ LOG = logging.getLogger(__name__)
def execute_job(data): def execute_job(data):
# Elements common to all job types # 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'] cluster_id = data['cluster_id']
configs = data.get('job_configs', {}) configs = data.get('job_configs', {})
interface = data.get('interface', {}) interface = data.get('interface', {})
@ -49,7 +49,7 @@ def execute_job(data):
configs['job_execution_info'] = job_execution_info configs['job_execution_info'] = job_execution_info
job_ex_dict = {'input_id': input_id, 'output_id': output_id, 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}, 'info': {'status': edp.JOB_STATUS_PENDING},
'job_configs': configs, 'extra': {}, 'job_configs': configs, 'extra': {},
'interface': interface} 'interface': interface}