Update podman_compose.py

fix #940

Signed-off-by: Zhen Liu <lzhen.dev@outlook.com>
This commit is contained in:
Zhen Liu 2024-05-18 08:24:35 +08:00
parent 2ce6d1a1e7
commit 1d64f2cf8c

View File

@ -1749,7 +1749,7 @@ class PodmanCompose:
# If `include` is used, append included files to files
include = compose.get("include", None)
if include:
files.append(*include)
files.extend(include)
# As compose obj is updated and tested with every loop, not deleting `include`
# from it, results in it being tested again and again, original values for
# `include` be appended to `files`, and, included files be processed for ever.