diff options
| author | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-08-14 17:13:29 +0800 |
|---|---|---|
| committer | Jeffrey Zhang <jeffrey.zhang@99cloud.net> | 2016-08-14 17:16:24 +0800 |
| commit | 05ed43e33574e99e280d08172ee53206f0e0c420 (patch) | |
| tree | e53bb5c809a0a4611f968d472142bfa8b3a5e707 | |
| parent | 349f46950be0abc388b8f3611a829d2e3d2fc954 (diff) | |
| download | kolla-05ed43e33574e99e280d08172ee53206f0e0c420.tar.gz kolla-05ed43e33574e99e280d08172ee53206f0e0c420.zip | |
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
| -rw-r--r-- | ansible/roles/horizon/templates/local_settings.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/horizon/templates/local_settings.j2 b/ansible/roles/horizon/templates/local_settings.j2 index 18159f3f7..4e41d4bad 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 %} } } |
