Split the host name, not its vars.

This commit is contained in:
Ralph Bean 2015-06-16 19:26:56 +00:00
parent e7b63b091a
commit c122890cf0

View file

@ -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 %}