From 7c3054b54b257659a179af772e995e1a0f5d1681 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 9 Oct 2018 14:17:43 +0100 Subject: [PATCH] commands/run: Update run output with final run config The RunInfo object in the run output is initally created before the config has been fully parsed therefore attributes for the project and run name are never updated, once the config has been finalized make sure to update the relavant information. --- wa/commands/run.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wa/commands/run.py b/wa/commands/run.py index ac45469c..91d6296b 100644 --- a/wa/commands/run.py +++ b/wa/commands/run.py @@ -112,6 +112,11 @@ class RunCommand(Command): 'by running "wa list workloads".' raise ConfigError(msg.format(args.agenda)) + # Update run info with newly parsed config values + output.info.project = config.run_config.project + output.info.project_stage = config.run_config.project_stage + output.info.run_name = config.run_config.run_name + executor = Executor() executor.execute(config, output)