mirror of
https://github.com/containers/podman-compose.git
synced 2025-06-03 08:55:37 +02:00
Fix healthcheck test type on replicas
This commit is contained in:
parent
4943e52344
commit
19662c02a1
@ -755,6 +755,7 @@ def container_to_args(compose, cnt, detached=True):
|
|||||||
# podman does not add shell to handle command with whitespace
|
# podman does not add shell to handle command with whitespace
|
||||||
podman_args.extend(['--healthcheck-command', '/bin/sh -c {}'.format(cmd_quote(healthcheck_test))])
|
podman_args.extend(['--healthcheck-command', '/bin/sh -c {}'.format(cmd_quote(healthcheck_test))])
|
||||||
elif is_list(healthcheck_test):
|
elif is_list(healthcheck_test):
|
||||||
|
healthcheck_test = healthcheck_test.copy()
|
||||||
# If it's a list, first item is either NONE, CMD or CMD-SHELL.
|
# If it's a list, first item is either NONE, CMD or CMD-SHELL.
|
||||||
healthcheck_type = healthcheck_test.pop(0)
|
healthcheck_type = healthcheck_test.pop(0)
|
||||||
if healthcheck_type == 'NONE':
|
if healthcheck_type == 'NONE':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user