From 2d1c41dcf57058a3a1f431b5c665e0235a3e0843 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 21 Feb 2024 15:39:34 +0100 Subject: [PATCH] Fix boolean values in configure-module action --- imageroot/actions/restore-module/50traefik | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imageroot/actions/restore-module/50traefik b/imageroot/actions/restore-module/50traefik index e6a6fdd..6321b26 100755 --- a/imageroot/actions/restore-module/50traefik +++ b/imageroot/actions/restore-module/50traefik @@ -14,8 +14,8 @@ request = json.load(sys.stdin) renv = request['environment'] configure_retval = agent.tasks.run(agent_id=os.environ['AGENT_ID'], action='configure-module', data={ - "lets_encrypt": renv["TRAEFIK_LETS_ENCRYPT"], + "lets_encrypt": renv["TRAEFIK_LETS_ENCRYPT"] == "True", "host": renv["TRAEFIK_HOST"], - "http2https": renv["TRAEFIK_HTTP2HTTPS"], + "http2https": renv["TRAEFIK_HTTP2HTTPS"] == "True", }) agent.assert_exp(configure_retval['exit_code'] == 0, "The configure-module subtask failed!")