From 05ed43e33574e99e280d08172ee53206f0e0c420 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Sun, 14 Aug 2016 17:13:29 +0800 Subject: [PATCH] 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 --- ansible/roles/horizon/templates/local_settings.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/horizon/templates/local_settings.j2 b/ansible/roles/horizon/templates/local_settings.j2 index 18159f3f76..4e41d4bad2 100644 --- a/ansible/roles/horizon/templates/local_settings.j2 +++ b/ansible/roles/horizon/templates/local_settings.j2 @@ -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 %} } }