From d4d4ad014772c32641a35fb5d9c8502474a08d7b Mon Sep 17 00:00:00 2001 From: Julian Labus Date: Fri, 23 Feb 2018 21:40:45 +0100 Subject: [PATCH] Role service-fastd-mesh: replace rstrip with rsplit --- .../templates/fastd_peer_limit_config.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/service-fastd-mesh/templates/fastd_peer_limit_config.yaml.j2 b/roles/service-fastd-mesh/templates/fastd_peer_limit_config.yaml.j2 index 1fd0e1c..2a0a480 100644 --- a/roles/service-fastd-mesh/templates/fastd_peer_limit_config.yaml.j2 +++ b/roles/service-fastd-mesh/templates/fastd_peer_limit_config.yaml.j2 @@ -14,7 +14,7 @@ fastd_config: '/etc/fastd/%s/peer_limit.conf' fastd_status: '/usr/local/bin/fastd-status' gateways: {% for gateway in groups['ffmwu-gateways'] %} - - {{ gateway.rstrip('.freifunk-mwu.de') }} + - {{ gateway.rsplit('.freifunk-mwu.de')[0] }} {% endfor %} {% for gateway in legacy_gateways %} - {{ gateway }}