Add unit test for depends_on normalization as a dict

Signed-off-by: Hedayat Vatankhah <hedayat.fwd@gmail.com>
This commit is contained in:
Hedayat Vatankhah
2024-04-08 23:02:25 +03:30
parent c31b4e2816
commit 1f35c00694
2 changed files with 44 additions and 1 deletions

View File

@ -1281,7 +1281,7 @@ def normalize_service(service, sub_dir=""):
if is_str(deps):
deps = [deps]
if is_list(deps):
deps_dict = dict()
deps_dict = {}
for d in deps:
deps_dict[d] = {'condition': 'service_started'}
service["depends_on"] = deps_dict