Skip to content

Commit

Permalink
Get global config file from filename
Browse files Browse the repository at this point in the history
  • Loading branch information
stefpiatek committed Apr 12, 2024
1 parent 5773817 commit 8df2547
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions emap-setup/emap_runner/docker/docker_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,9 @@ def _all_global_environment_variables() -> dict:
env_vars = os.environ.copy()

for item in config_dir_path.iterdir():

# only necessary to read the global config variables; rest will be
# pulled through containers directly
if item.is_file() and str(item) == "global-config-envs":
if item.is_file() and item.stem == "global-config-envs":
env_vars.update(EnvironmentFile(item).environment_variables)

return env_vars
Expand Down

0 comments on commit 8df2547

Please sign in to comment.