Skip to content

Commit

Permalink
Bringing back the case of a single string stated in depends_on.
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 0a4d734 commit f582319
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,9 @@ def rec_deps(services, service_name, start_point=None):
deps.add(ext)
continue
deps_ls = srv.get("depends_on", [])
if isinstance(deps_ls, list):
if isinstance(deps_ls, str):
deps_ls = [ServiceDependency(dep_ls)]
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()]
Expand Down

0 comments on commit f582319

Please sign in to comment.