From f660a0ccf48688c45bb447e270118c935de91303 Mon Sep 17 00:00:00 2001 From: Felix Rubio Date: Fri, 29 Nov 2024 21:02:06 +0100 Subject: [PATCH] fixed the search for object with given start point name within deps set Signed-off-by: Felix Rubio --- podman_compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index cce32d76..d03b829d 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1323,7 +1323,7 @@ def rec_deps(services, service_name, start_point=None): if not dep_srv: continue # NOTE: avoid creating loops, A->B->A - if start_point in any(x.name for x in dep_srv["_deps"]): + if any(start_point == x.name for x in dep_srv["_deps"]): continue new_deps = rec_deps(services, dep_name, start_point) deps.update(new_deps)