Role service-fastd-mesh: replace rstrip with rsplit

This commit is contained in:
Julian Labus 2018-02-23 21:40:45 +01:00
parent 0d60aa9f99
commit d4d4ad0147
No known key found for this signature in database
GPG key ID: 8AF209F2C6B3572A

View file

@ -14,7 +14,7 @@ fastd_config: '/etc/fastd/%s/peer_limit.conf'
fastd_status: '/usr/local/bin/fastd-status' fastd_status: '/usr/local/bin/fastd-status'
gateways: gateways:
{% for gateway in groups['ffmwu-gateways'] %} {% for gateway in groups['ffmwu-gateways'] %}
- {{ gateway.rstrip('.freifunk-mwu.de') }} - {{ gateway.rsplit('.freifunk-mwu.de')[0] }}
{% endfor %} {% endfor %}
{% for gateway in legacy_gateways %} {% for gateway in legacy_gateways %}
- {{ gateway }} - {{ gateway }}