Skip to content

Commit f3e9a96

Browse files
hedayatmokibit
authored andcommitted
Fixes #908: Add support for multi-line environment files
Signed-off-by: Hedayat Vatankhah <[email protected]>
1 parent 04b1078 commit f3e9a96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

podman_compose.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,11 @@ async def container_to_args(compose, cnt, detached=True):
10721072
if not required:
10731073
continue
10741074
raise ValueError("Env file at {} does not exist".format(i))
1075-
podman_args.extend(["--env-file", i])
1075+
dotenv_dict = {}
1076+
dotenv_dict = dotenv_to_dict(i)
1077+
env = norm_as_list(dotenv_dict)
1078+
for e in env:
1079+
podman_args.extend(["-e", e])
10761080
env = norm_as_list(cnt.get("environment", {}))
10771081
for e in env:
10781082
podman_args.extend(["-e", e])

0 commit comments

Comments
 (0)