From 85244272ffec616e2926c9898c03c2f0bf53ed3f Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Thu, 9 Dec 2021 16:18:52 +0200 Subject: [PATCH] FIXES #368: parse depends_on of type dict --- podman_compose.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index df2ec5e..bb59576 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -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 []