From 466557317aaf1a281bbc1e849269dff932effb60 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Fri, 18 May 2018 16:23:13 -0400 Subject: [PATCH] Small corrections to config parser --- traefik/files/traefik.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/traefik/files/traefik.toml b/traefik/files/traefik.toml index fe070fc..a2a8358 100644 --- a/traefik/files/traefik.toml +++ b/traefik/files/traefik.toml @@ -1,6 +1,12 @@ {% for section in config -%} [{{ section }}] {% for key, val in config[section].iteritems() -%} -{{ key }} = {{ val }} +{% if val is True -%} +{{ key }} = true +{% elif val is False -%} +{{ key }} = false +{% else -%} +{{ key }} = "{{ val }}" +{% endif -%} {% endfor -%} {% endfor -%}