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)