forked from extern/podman-compose
FIXES #368: parse depends_on of type dict
This commit is contained in:
parent
749d188321
commit
00b9ce1ee4
@ -857,7 +857,8 @@ def flat_deps(services, with_extends=False):
|
|||||||
if ext != name: deps.add(ext)
|
if ext != name: deps.add(ext)
|
||||||
continue
|
continue
|
||||||
deps_ls = srv.get("depends_on", None) or []
|
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)
|
deps.update(deps_ls)
|
||||||
# parse link to get service name and remove alias
|
# parse link to get service name and remove alias
|
||||||
links_ls = srv.get("links", None) or []
|
links_ls = srv.get("links", None) or []
|
||||||
|
Loading…
Reference in New Issue
Block a user