Skip to content

Commit

Permalink
Add more comments to the code
Browse files Browse the repository at this point in the history
Signed-off-by: Songmin Li <lisongmin@protonmail.com>
  • Loading branch information
lisongmin committed Jul 22, 2024
1 parent 2f5e548 commit 420e5a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ def rec_subs(value, subs_dict):
# Load service's environment variables
subs_dict = subs_dict.copy()
svc_envs = {k: v for k, v in value['environment'].items() if k not in subs_dict}
# we need to add `svc_envs` to the `subs_dict` so that it can evaluate the
# service environment that reference to another service environment.
subs_dict.update(svc_envs)
svc_envs = rec_subs(svc_envs, subs_dict)
subs_dict.update(svc_envs)
Expand Down

0 comments on commit 420e5a0

Please sign in to comment.