From 291d420e71789e671e50c78e7be827ef222c853c Mon Sep 17 00:00:00 2001 From: Sora Date: Sat, 11 Nov 2023 22:25:46 +0100 Subject: [PATCH] appending dependances should be good --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 2983f3f..796087d 100644 --- a/main.py +++ b/main.py @@ -109,8 +109,8 @@ def yaml_to_services_list(filepath: str) -> dict|None: for servicename in ycontent["services"]: print(f"appending {servicename}") mustbefore = [] - if "depends_on" in ycontent["services"]: - for dependance in ycontent["services"]["depends_on"]: + if "depends_on" in ycontent["services"][servicename]: + for dependance in ycontent["services"][servicename]["depends_on"]: mustbefore.append(dependance) serviceslist[servicename] = {"must_before": mustbefore, "must_after": [], "backupdone": False}