From c9486c9f3bbdc04ca842d70fd6ccf8ca5d76ec40 Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Mon, 25 Oct 2021 00:14:19 +0300 Subject: [PATCH] #115: handle string entrypoint --- podman_compose.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/podman_compose.py b/podman_compose.py index 546b7e7..279f0f6 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -763,9 +763,8 @@ def container_to_args(compose, cnt, detached=True): entrypoint = cnt.get('entrypoint', None) if entrypoint is not None: if is_str(entrypoint): - podman_args.extend(['--entrypoint', entrypoint]) - else: - podman_args.extend(['--entrypoint', json.dumps(entrypoint)]) + entrypoint = shlex.split(entrypoint) + podman_args.extend(['--entrypoint', json.dumps(entrypoint)]) # WIP: healthchecks are still work in progress healthcheck = cnt.get('healthcheck', None) or {}