Skip to content

Commit b555d41

Browse files
madmatahsaghul
authored andcommitted
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
1 parent 6be198c commit b555d41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jicofo/rootfs/defaults/jicofo.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jicofo {
4747

4848
{{ if .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }}
4949
health-checks {
50-
enabled = "{{ .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }}"
50+
enabled = {{ .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS | toBool }}
5151
}
5252
{{ end }}
5353

@@ -76,7 +76,7 @@ jicofo {
7676

7777
conference {
7878
{{ if .Env.ENABLE_AUTO_OWNER }}
79-
enable-auto-owner = "{{ .Env.ENABLE_AUTO_OWNER }}"
79+
enable-auto-owner = {{ .Env.ENABLE_AUTO_OWNER | toBool }}
8080
{{ end }}
8181

8282
{{ if .Env.JICOFO_CONF_INITIAL_PARTICIPANT_WAIT_TIMEOUT }}
@@ -92,7 +92,7 @@ jicofo {
9292
// Configuration for the internal health checks performed by jicofo.
9393
health {
9494
// Whether to perform health checks.
95-
enabled = "{{ .Env.JICOFO_ENABLE_HEALTH_CHECKS }}"
95+
enabled = {{ .Env.JICOFO_ENABLE_HEALTH_CHECKS | toBool }}
9696
}
9797
{{ end }}
9898

0 commit comments

Comments
 (0)