mirror of
https://github.com/containers/podman-compose.git
synced 2025-03-31 03:11:15 +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:
|
||||
if isinstance(port, dict):
|
||||
port = port_dict_to_str(port)
|
||||
elif isinstance(port, int):
|
||||
port = str(port)
|
||||
elif not isinstance(port, str):
|
||||
raise TypeError("port should be either string or dict")
|
||||
ports_out.append(port)
|
||||
|
Loading…
Reference in New Issue
Block a user