From f582319a64d2bf8f9f2c78c9356a6e6c7c6e32cc Mon Sep 17 00:00:00 2001 From: Felix Rubio Date: Fri, 29 Nov 2024 09:48:01 +0100 Subject: [PATCH] Bringing back the case of a single string stated in depends_on. Signed-off-by: Felix Rubio --- podman_compose.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()]