mirror of
https://github.com/containers/podman-compose.git
synced 2025-04-09 17:41:03 +02:00
Make sure port entries are converted to strings
Otherwise concatenating all parameters might fail with a TypeError
This commit is contained in:
parent
62d2024fee
commit
039fe30a70
@ -1170,9 +1170,10 @@ def create_pods(compose, args):
|
|||||||
]
|
]
|
||||||
ports = pod.get("ports", None) or []
|
ports = pod.get("ports", None) or []
|
||||||
for i in ports:
|
for i in ports:
|
||||||
podman_args.extend(['-p', i])
|
podman_args.extend(['-p', str(i)])
|
||||||
compose.podman.run([], "pod", podman_args)
|
compose.podman.run([], "pod", podman_args)
|
||||||
|
|
||||||
|
|
||||||
def up_specific(compose, args):
|
def up_specific(compose, args):
|
||||||
deps = []
|
deps = []
|
||||||
if not args.no_deps:
|
if not args.no_deps:
|
||||||
|
Loading…
Reference in New Issue
Block a user