appending dependances should be good
This commit is contained in:
4
main.py
4
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}
|
||||
|
||||
Reference in New Issue
Block a user