From 71bf970811baf78a00d5ed53088ce9ac052c87fe Mon Sep 17 00:00:00 2001 From: Patrick Marchand Date: Tue, 3 Sep 2019 11:14:48 -0400 Subject: [PATCH] Fix extra space in zzz_evobackup template Not the best solution, a mix of map, format, join would of been better, but I could not find out how to make it work with multiple attributes. --- evobackup-client/templates/zzz_evobackup.default.sh.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evobackup-client/templates/zzz_evobackup.default.sh.j2 b/evobackup-client/templates/zzz_evobackup.default.sh.j2 index 766c023d..5471bec4 100644 --- a/evobackup-client/templates/zzz_evobackup.default.sh.j2 +++ b/evobackup-client/templates/zzz_evobackup.default.sh.j2 @@ -19,9 +19,9 @@ # email adress for notifications MAIL={{ evobackup-client__mail }} - +{{ evobackup-client__hosts | map # list of hosts (hostname or IP) and SSH port for Rsync -SERVERS="{% for host in evobackup-client__hosts %}{{ host.name }}:{{ host.port }} {% endfor %}" +SERVERS="{% for host in evobackup-client__hosts %}{{ host.name }}:{{ host.port }}{% if loop.index != loop.length %} {% endif %}{% endfor %}" # timeout (in seconds) for SSH connections SSH_CONNECT_TIMEOUT=30