Skip to content

Commit

Permalink
fix issue overwriting of config_data entry
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Aug 7, 2024
1 parent b285f81 commit 78e625e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ def get_build_env_cfg(cfg):
"""
fn = sys._getframe().f_code.co_name

config_data = {}
buildenv = cfg[config.SECTION_BUILDENV]

job_name = buildenv.get(config.BUILDENV_SETTING_JOB_NAME)
log(f"{fn}(): job_name '{job_name}'")
config_data = {config.BUILDENV_SETTING_JOB_NAME: job_name}
config_data[config.BUILDENV_SETTING_JOB_NAME] = job_name

jobs_base_dir = buildenv.get(config.BUILDENV_SETTING_JOBS_BASE_DIR)
log(f"{fn}(): jobs_base_dir '{jobs_base_dir}'")
config_data = {config.BUILDENV_SETTING_JOBS_BASE_DIR: jobs_base_dir}
config_data[config.BUILDENV_SETTING_JOBS_BASE_DIR] = jobs_base_dir

local_tmp = buildenv.get(config.BUILDENV_SETTING_LOCAL_TMP)
log(f"{fn}(): local_tmp '{local_tmp}'")
Expand Down

0 comments on commit 78e625e

Please sign in to comment.