Skip to content

Commit

Permalink
fixed wrong variable used in dependency parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
flixman committed Nov 29, 2024
1 parent ad22ecd commit 4de5d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -1345,9 +1345,9 @@ def rec_deps(services, service_name, start_point=None):
elif isinstance(deps_ls, list):
deps_ls = [ServiceDependency(t) for t in deps_ls]
elif isinstance(deps_ls, dict):
deps_ls = [ServiceDependency(k, v.get("condition")) for k, v in deps.items()]
deps_ls = [ServiceDependency(k, v.get("condition")) for k, v in deps_ls.items()]
else:
raise RuntimeError("depends_on should be a list of strings or a dict")
raise RuntimeError("depends_on should be a string, a list of strings or a dict")

# parse link to get service name and remove alias
links_ls = srv.get("links", [])
Expand Down

0 comments on commit 4de5d58

Please sign in to comment.