mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-22 07:53:16 +01:00
FIXES #368: parse depends_on of type dict
This commit is contained in:
parent
30cfe2317c
commit
85244272ff
@ -772,7 +772,8 @@ def flat_deps(services, with_extends=False):
|
||||
if ext != name: deps.add(ext)
|
||||
continue
|
||||
deps_ls = srv.get("depends_on", None) or []
|
||||
if not is_list(deps_ls): deps_ls=[deps_ls]
|
||||
if is_str(deps_ls): deps_ls=[deps_ls]
|
||||
elif is_dict(deps_ls): deps_ls=list(deps_ls.keys())
|
||||
deps.update(deps_ls)
|
||||
# parse link to get service name and remove alias
|
||||
links_ls = srv.get("links", None) or []
|
||||
|
Loading…
Reference in New Issue
Block a user