Procházet zdrojové kódy

Remove indent parameter for to_nice_json

It's only available in ansible 2.2.X.
Stephen Muth před 9 roky
rodič
revize
14b8b65a1c
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      templates/client.json.j2
  2. 1 1
      templates/sensu-redis.json.j2

+ 1 - 1
templates/client.json.j2

@@ -2,6 +2,6 @@
   "client": {
   "client": {
     "name": "{{ sensu_client_name }}",
     "name": "{{ sensu_client_name }}",
     "address": "{{ ansible_default_ipv4['address'] }}",
     "address": "{{ ansible_default_ipv4['address'] }}",
-    "subscriptions": {{ sensu_client_subscriptions | to_nice_json(indent=6) }}
+    "subscriptions": {{ sensu_client_subscriptions | to_nice_json }}
   }
   }
 }
 }

+ 1 - 1
templates/sensu-redis.json.j2

@@ -4,7 +4,7 @@
     "password": "{{ redis_password }}",
     "password": "{{ redis_password }}",
 {% endif %}
 {% endif %}
 {% if redis_sentinels %}
 {% if redis_sentinels %}
-    "sentinels": {{ redis_sentinels | to_nice_json(indent=4) }},
+    "sentinels": {{ redis_sentinels | to_nice_json }},
     "master": "{{ redis_master_name }}"
     "master": "{{ redis_master_name }}"
 {% else %}
 {% else %}
     "host": "{{ redis_host }}",
     "host": "{{ redis_host }}",