Skip to content

Commit

Permalink
Fixes #723: merge short & long syntax of depends_on dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Hedayat Vatankhah <[email protected]>
  • Loading branch information
hedayat committed Jul 8, 2023
1 parent 3890eac commit c31b4e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,15 @@ def normalize_service(service, sub_dir=""):
if is_str(extends):
extends = {"service": extends}
service["extends"] = extends
if "depends_on" in service:
deps = service["depends_on"]
if is_str(deps):
deps = [deps]
if is_list(deps):
deps_dict = dict()
for d in deps:
deps_dict[d] = {'condition': 'service_started'}
service["depends_on"] = deps_dict
return service


Expand Down

0 comments on commit c31b4e2

Please sign in to comment.