mirror of
https://github.com/containers/podman-compose.git
synced 2025-04-10 18:48:25 +02:00
FIXES #449: accept int port
This commit is contained in:
parent
bf8004b04d
commit
b620311aaf
@ -654,6 +654,8 @@ def norm_ports(ports_in):
|
|||||||
for port in ports_in:
|
for port in ports_in:
|
||||||
if isinstance(port, dict):
|
if isinstance(port, dict):
|
||||||
port = port_dict_to_str(port)
|
port = port_dict_to_str(port)
|
||||||
|
elif isinstance(port, int):
|
||||||
|
port = str(port)
|
||||||
elif not isinstance(port, str):
|
elif not isinstance(port, str):
|
||||||
raise TypeError("port should be either string or dict")
|
raise TypeError("port should be either string or dict")
|
||||||
ports_out.append(port)
|
ports_out.append(port)
|
||||||
|
Loading…
Reference in New Issue
Block a user