Remove useless trailing '\n' in /etc/hosts file.
authorGael Chamoulaud <gchamoul@redhat.com>
Tue, 21 Mar 2017 15:08:59 +0000 (16:08 +0100)
committerGael Chamoulaud <gchamoul@redhat.com>
Wed, 22 Mar 2017 08:57:45 +0000 (09:57 +0100)
In HA deployment mode, we've got some trailing '\n' generated at the beginning
of each controller role nodes line in the undercloud /etc/hosts [1].

[1] - http://paste.openstack.org/show/603721/

Closes-Bug: #1674697

Change-Id: Ic38bc2a5df79dadf72025f207e91a38cc0ab0a92
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
overcloud.j2.yaml

index e99f770..e1df551 100644 (file)
@@ -398,7 +398,7 @@ resources:
         -
 {% for role in roles %}
           - list_join:
-            - "\n"
+            - ""
             - {get_attr: [{{role.name}}, hosts_entry]}
 {% endfor %}