still testing²²²
This commit is contained in:
3
main.py
3
main.py
@@ -84,7 +84,7 @@ def yaml_to_services_list(filepath: str) -> dict|None:
|
|||||||
:param filepath: str
|
:param filepath: str
|
||||||
:return: list|None
|
:return: list|None
|
||||||
'''
|
'''
|
||||||
|
print(f"sorting services from {filepath}")
|
||||||
serviceslist = dict()
|
serviceslist = dict()
|
||||||
|
|
||||||
if not os.path.isfile(filepath):
|
if not os.path.isfile(filepath):
|
||||||
@@ -106,6 +106,7 @@ def yaml_to_services_list(filepath: str) -> dict|None:
|
|||||||
|
|
||||||
# on liste les services et ceux dont ils dépendent
|
# on liste les services et ceux dont ils dépendent
|
||||||
for servicename in ycontent["services"]:
|
for servicename in ycontent["services"]:
|
||||||
|
print(f"appending {servicename}")
|
||||||
mustbefore = []
|
mustbefore = []
|
||||||
if "depends_on" in ycontent["services"]:
|
if "depends_on" in ycontent["services"]:
|
||||||
for dependance in ycontent["services"]["depends_on"]:
|
for dependance in ycontent["services"]["depends_on"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user