diff --git a/submit_jobs/submit_jobs/handlers.py b/submit_jobs/submit_jobs/handlers.py index 5ce5812e..a27fe636 100644 --- a/submit_jobs/submit_jobs/handlers.py +++ b/submit_jobs/submit_jobs/handlers.py @@ -135,15 +135,17 @@ def get(self, **params): if 'memory' in params.keys(): config['memory'] = params['memory'] - # overwrite config yaml with memory - config_template = WORKDIR+"/submit_jobs/register.yaml" - new_config = '' - with open(config_template, 'r') as infile: - new_config = infile.read() - new_config = new_config.format(**config) - os.remove(params['config_path']) - with open(params['config_path'], 'w') as outfile: - outfile.write(new_config) + # TODO: bug fix needed -- this mangles the input section of the config yaml + # Commenting out for now + # # overwrite config yaml with memory + # config_template = WORKDIR+"/submit_jobs/register.yaml" + # new_config = '' + # with open(config_template, 'r') as infile: + # new_config = infile.read() + # new_config = new_config.format(**config) + # os.remove(params['config_path']) + # with open(params['config_path'], 'w') as outfile: + # outfile.write(new_config) logging.debug('fields') logging.debug(fields)