From 19662c02a132b6973831664435bf32d4c3064a8d Mon Sep 17 00:00:00 2001 From: tengattack Date: Sat, 15 Jan 2022 11:51:30 +0800 Subject: [PATCH] Fix healthcheck test type on replicas --- podman_compose.py | 1 + 1 file changed, 1 insertion(+) diff --git a/podman_compose.py b/podman_compose.py index 5189d53..a153e9b 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -755,6 +755,7 @@ def container_to_args(compose, cnt, detached=True): # podman does not add shell to handle command with whitespace podman_args.extend(['--healthcheck-command', '/bin/sh -c {}'.format(cmd_quote(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. healthcheck_type = healthcheck_test.pop(0) if healthcheck_type == 'NONE':