diff --git a/podman_compose.py b/podman_compose.py index 14884f3b..cce32d76 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1345,9 +1345,9 @@ def rec_deps(services, service_name, start_point=None): 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()] + deps_ls = [ServiceDependency(k, v.get("condition")) for k, v in deps_ls.items()] else: - raise RuntimeError("depends_on should be a list of strings or a dict") + raise RuntimeError("depends_on should be a string, a list of strings or a dict") # parse link to get service name and remove alias links_ls = srv.get("links", [])