From d96464e9ee581b03b8c200e830e0989df74b2546 Mon Sep 17 00:00:00 2001 From: Duong Ha-Quang Date: Fri, 19 Aug 2016 00:05:18 +0700 Subject: [PATCH] Improve rabbitmq-clusterer template code format TrivialFix Change-Id: I735091c4d044344361e604014f3877b608223204 --- .../rabbitmq/templates/rabbitmq-clusterer.config.j2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ansible/roles/rabbitmq/templates/rabbitmq-clusterer.config.j2 b/ansible/roles/rabbitmq/templates/rabbitmq-clusterer.config.j2 index a50ce84eae..34bf9b0dd7 100644 --- a/ansible/roles/rabbitmq/templates/rabbitmq-clusterer.config.j2 +++ b/ansible/roles/rabbitmq/templates/rabbitmq-clusterer.config.j2 @@ -1,9 +1,11 @@ [ {version, 1}, {nodes, [ -{% for host in groups['rabbitmq'] %} {'rabbit@{{ hostvars[host]['ansible_hostname'] }}', disc}{% if not loop.last %},{% endif %} - -{% endfor %} + {% for host in groups['rabbitmq'] %} + {'rabbit@{{ hostvars[host]['ansible_hostname'] }}', disc} + {%- if not loop.last -%},{%- endif %} + {% endfor %} ]}, - {gospel, {node, 'rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}'}} + {gospel, + {node, 'rabbit@{{ hostvars[groups['rabbitmq'][0]]['ansible_hostname'] }}'}} ].