Skip to content
Snippets Groups Projects
Commit 05ed43e3 authored by Jeffrey Zhang's avatar Jeffrey Zhang
Browse files

Fix the memcache location value in horizon local settings

When setting multi memcached servers, the value should be a list
rather then a comma joined string

This patch set I586ce1c6c3300254c4e2a398ff46645df576aeb0 set it in
wrong

TrivialFix

Change-Id: Ic612658ab0310c6764310bbca92c925da6d47f6c
parent 349f4695
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,7 @@ CACHES = {
{% if orchestration_engine == 'KUBERNETES' %}
'LOCATION': '{{ memcached_servers }}'
{% else %}
'LOCATION': '{% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}'
'LOCATION': [{% for host in groups['memcached'] %}'{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}'{% if not loop.last %},{% endif %}{% endfor %}]
{%- endif %}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment