From c122890cf08a67bbf8f5f9a528a6f3c8974f7fda Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 16 Jun 2015 19:26:56 +0000 Subject: [PATCH] Split the host name, not its vars. --- roles/fedmsg/base/templates/endpoints.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/fedmsg/base/templates/endpoints.py.j2 b/roles/fedmsg/base/templates/endpoints.py.j2 index 5186c27477..fc0616a863 100644 --- a/roles/fedmsg/base/templates/endpoints.py.j2 +++ b/roles/fedmsg/base/templates/endpoints.py.j2 @@ -105,7 +105,7 @@ config = dict( # Eventually, replace *all* fedmsg endpoint definitions with this one loop {% for host in groups['all'] %} {% if 'wsgi_fedmsg_service' in hostvars[host] %} - "{{hostvars[host]['wsgi_fedmsg_service']}}.{{hostvars[host].split('.')|first}}": [ + "{{hostvars[host]['wsgi_fedmsg_service']}}.{{host.split('.')|first}}": [ {% for i in range(wsgi_procs * wsgi_threads) %} "tcp://{{host}}:30{{'%02d' % i}}", {% endfor %}