Skip to content

Commit

Permalink
fixed the search for object with given start point name within deps set
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Rubio <[email protected]>
  • Loading branch information
flixman committed Nov 29, 2024
1 parent 7938f9a commit f660a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f660a0c

Please sign in to comment.