From b555d41a7f8705f659d35a36084e82f34a359e37 Mon Sep 17 00:00:00 2001 From: Matthieu Huguet Date: Tue, 24 Aug 2021 18:51:55 +0200 Subject: [PATCH] jicofo: fix boolean values in configuration file A type error is thrown when one of these environment variables is defined: - ENABLE_AUTO_OWNER - JICOFO_ENABLE_HEALTH_CHECKS - JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS --- jicofo/rootfs/defaults/jicofo.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jicofo/rootfs/defaults/jicofo.conf b/jicofo/rootfs/defaults/jicofo.conf index 90e5660..28acae2 100644 --- a/jicofo/rootfs/defaults/jicofo.conf +++ b/jicofo/rootfs/defaults/jicofo.conf @@ -47,7 +47,7 @@ jicofo { {{ if .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }} health-checks { - enabled = "{{ .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }}" + enabled = {{ .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS | toBool }} } {{ end }} @@ -76,7 +76,7 @@ jicofo { conference { {{ if .Env.ENABLE_AUTO_OWNER }} - enable-auto-owner = "{{ .Env.ENABLE_AUTO_OWNER }}" + enable-auto-owner = {{ .Env.ENABLE_AUTO_OWNER | toBool }} {{ end }} {{ if .Env.JICOFO_CONF_INITIAL_PARTICIPANT_WAIT_TIMEOUT }} @@ -92,7 +92,7 @@ jicofo { // Configuration for the internal health checks performed by jicofo. health { // Whether to perform health checks. - enabled = "{{ .Env.JICOFO_ENABLE_HEALTH_CHECKS }}" + enabled = {{ .Env.JICOFO_ENABLE_HEALTH_CHECKS | toBool }} } {{ end }}