From 7267e553dff5856b5b67eed8bf3781a21e4b68ea Mon Sep 17 00:00:00 2001 From: Jiri Tyr Date: Tue, 10 Mar 2015 10:55:10 +0000 Subject: [PATCH] Adding convert_bools into the template --- templates/client.json.j2 | 2 +- templates/config.json.j2 | 2 +- templates/rabbitmq.json.j2 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/client.json.j2 b/templates/client.json.j2 index 3c86ff6..1e34cd5 100644 --- a/templates/client.json.j2 +++ b/templates/client.json.j2 @@ -1,3 +1,3 @@ {% from "templates/encoder/macros/json_encode_macro.j2" import json_encode with context -%} -{{ json_encode(sensu_client_config, convert_nums=true) }} +{{ json_encode(sensu_client_config, convert_bools=true, convert_nums=true) }} diff --git a/templates/config.json.j2 b/templates/config.json.j2 index 7ef325e..34675a3 100644 --- a/templates/config.json.j2 +++ b/templates/config.json.j2 @@ -1,3 +1,3 @@ {% from "templates/encoder/macros/json_encode_macro.j2" import json_encode with context -%} -{{ json_encode(sensu_config, convert_nums=true) }} +{{ json_encode(sensu_config, convert_bools=true, convert_nums=true) }} diff --git a/templates/rabbitmq.json.j2 b/templates/rabbitmq.json.j2 index 1957a5f..a15dad2 100644 --- a/templates/rabbitmq.json.j2 +++ b/templates/rabbitmq.json.j2 @@ -1,3 +1,3 @@ {% from "templates/encoder/macros/json_encode_macro.j2" import json_encode with context -%} -{{ json_encode(sensu_client_rabbitmq_config, convert_nums=true) }} +{{ json_encode(sensu_client_rabbitmq_config, convert_bools=true, convert_nums=true) }}