diff --git a/podman_compose.py b/podman_compose.py index de914fd..b0004be 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -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()]