Skip to content

Commit 32cb95d

Browse files
author
Kyr Shatskyy
committed
dispatcher: avoid using orig.config.yaml for initial config
Since teuthology.run is using orig.config.yaml to save consolidated job config data we better select initial.config.yaml for storing slightly modified job body from the queue. Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
1 parent 7d6dfae commit 32cb95d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

teuthology/dispatcher/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ def main(args):
161161
log.info('Creating job\'s archive dir %s', job_archive_path)
162162
safepath.makedirs('/', job_archive_path)
163163

164-
orig_job_config_path = os.path.join(job_archive_path, 'orig.config.yaml')
164+
initial_job_config_path = os.path.join(job_archive_path, 'initial.config.yaml')
165165
# Write initial job config in job archive dir
166-
with open(orig_job_config_path, 'w') as f:
166+
with open(initial_job_config_path, 'w') as f:
167167
yaml.safe_dump(job_config, f, default_flow_style=False)
168168

169169

@@ -214,7 +214,7 @@ def main(args):
214214
)
215215
continue
216216
else:
217-
run_args.extend(["--job-config", orig_job_config_path])
217+
run_args.extend(["--job-config", initial_job_config_path])
218218

219219
report.try_push_job_info(job_config, dict(status='running'))
220220
try:

0 commit comments

Comments
 (0)