From 00ae4350441eae52b1a91f18cbf0365fcd7e4e3f Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Tue, 8 Jan 2019 13:10:12 +0200 Subject: [PATCH] Use |to_json filter for serializing booleans to JSON This should account for all cases where we were still doing such a thing. Improvement suggested in #65 (Github issue). --- roles/matrix-server/templates/corporal/config.json.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/matrix-server/templates/corporal/config.json.j2 b/roles/matrix-server/templates/corporal/config.json.j2 index f86560ba..70fb3683 100644 --- a/roles/matrix-server/templates/corporal/config.json.j2 +++ b/roles/matrix-server/templates/corporal/config.json.j2 @@ -17,7 +17,7 @@ }, "HttpApi": { - "Enabled": {{ 'true' if matrix_corporal_http_api_enabled else 'false' }}, + "Enabled": {{ matrix_corporal_http_api_enabled|to_json }}, "ListenAddress": "0.0.0.0:41081", "AuthorizationBearerToken": "{{ matrix_corporal_http_api_auth_token }}" }, @@ -25,6 +25,6 @@ "PolicyProvider": {{ matrix_corporal_policy_provider_config }}, "Misc": { - "Debug": {{ 'true' if matrix_corporal_debug else 'false' }} + "Debug": {{ matrix_corporal_debug|to_json }} } }