This commit is contained in:
Muayyad Alsadi 2019-07-09 15:04:40 +03:00
parent e21932e1de
commit aabaefbaa6

View File

@ -503,7 +503,7 @@ def container_to_args(cnt, dirname, podman_path, shared_vols):
elif healthcheck_type == 'CMD-SHELL': elif healthcheck_type == 'CMD-SHELL':
if len(healthcheck_test)!=1: if len(healthcheck_test)!=1:
raise ValueError("'CMD_SHELL' takes a single string after it") raise ValueError("'CMD_SHELL' takes a single string after it")
args.extend(['--healthcheck-command', '/bin/sh -c {}'.format(cmd_quote(healthcheck_test[0])])) args.extend(['--healthcheck-command', '/bin/sh -c {}'.format(cmd_quote(healthcheck_test[0]))])
else: else:
raise ValueError( raise ValueError(
"unknown healthcheck test type [{}],\ "unknown healthcheck test type [{}],\