Przeglądaj źródła

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).
pull/72/head
Slavi Pantaleev 7 lat temu
rodzic
commit
00ae435044
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      roles/matrix-server/templates/corporal/config.json.j2

+ 2
- 2
roles/matrix-server/templates/corporal/config.json.j2 Wyświetl plik

@@ -17,7 +17,7 @@
}, },


"HttpApi": { "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", "ListenAddress": "0.0.0.0:41081",
"AuthorizationBearerToken": "{{ matrix_corporal_http_api_auth_token }}" "AuthorizationBearerToken": "{{ matrix_corporal_http_api_auth_token }}"
}, },
@@ -25,6 +25,6 @@
"PolicyProvider": {{ matrix_corporal_policy_provider_config }}, "PolicyProvider": {{ matrix_corporal_policy_provider_config }},


"Misc": { "Misc": {
"Debug": {{ 'true' if matrix_corporal_debug else 'false' }}
"Debug": {{ matrix_corporal_debug|to_json }}
} }
} }

Ładowanie…
Anuluj
Zapisz