feat: implment Parser parse link
This commit is contained in:
parent
114f778727
commit
87422471be
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,9 @@ class Parser:
|
||||||
volume_target = spilt_data[1]
|
volume_target = spilt_data[1]
|
||||||
service_volumes.append(Volume(source=volume_source, target=volume_target))
|
service_volumes.append(Volume(source=volume_source, target=volume_target))
|
||||||
|
|
||||||
|
service_links: List[str] = []
|
||||||
|
if service.get("links"):
|
||||||
|
service_links = service["links"]
|
||||||
|
|
||||||
services.append(
|
services.append(
|
||||||
Service(
|
Service(
|
||||||
|
@ -90,6 +92,7 @@ class Parser:
|
||||||
ports=service_ports,
|
ports=service_ports,
|
||||||
depends_on=service_depends_on,
|
depends_on=service_depends_on,
|
||||||
volumes=service_volumes,
|
volumes=service_volumes,
|
||||||
|
links=service_links
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
# Service print debug
|
# Service print debug
|
||||||
|
|
Loading…
Reference in a new issue