feat: implment Parser parse link

This commit is contained in:
uccu 2022-05-21 22:00:38 +08:00
parent 114f778727
commit 87422471be

View file

@ -79,7 +79,9 @@ class Parser:
volume_target = spilt_data[1]
service_volumes.append(Volume(source=volume_source, target=volume_target))
service_links: List[str] = []
if service.get("links"):
service_links = service["links"]
services.append(
Service(
@ -90,6 +92,7 @@ class Parser:
ports=service_ports,
depends_on=service_depends_on,
volumes=service_volumes,
links=service_links
)
)
# Service print debug