:fix fix parser port parse error
This commit is contained in:
parent
1c96d6f9f2
commit
473033d3f5
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class Parser:
|
|||
if service.get("ports"):
|
||||
if type(service["ports"]) is list:
|
||||
for port_data in service["ports"]:
|
||||
if not port_data.contains(":"):
|
||||
if ':' not in port_data:
|
||||
raise RuntimeError("Invalid ports input, aborting.")
|
||||
spilt_data = port_data.split(":", 1)
|
||||
service_ports.append(Port(host_port=spilt_data[0],
|
||||
|
|
Loading…
Reference in a new issue