summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchenshuai@huawei.com <chenshuai@huawei.com>2016-01-12 13:36:14 +0800
committershuai chen <chenshuai@huawei.com>2016-01-21 06:49:55 +0000
commitbf4d023639b643b86550e5ef19587a806f929e3f (patch)
tree7841607ee77334bdfb85dc6805dcac0d0e68d3a8
parent9f974e0578f68f9e31807d07b4c47614054cae00 (diff)
bugfix: index of haproxy_hosts error in opencontrail webui script
JIRA: COMPASS-261 Change-Id: I46055b1baa8cb9fe8744c40659ab8abf07d00923 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com> (cherry picked from commit 293b868b24e70ed1440339836f33be87ea05e364)
-rwxr-xr-xdeploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml b/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml
index 515b10e9..6758b8e7 100755
--- a/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml
+++ b/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml
@@ -17,14 +17,14 @@
- name: "set first cassandra host address"
set_fact:
# cassandra_addrs: "'{{ hostvars[item.1]['contrail_address'] }}'"
- cassandra_addrs: "'{{ haproxy_hosts[item] }}'"
+ cassandra_addrs: "'{{ haproxy_hosts[item.1] }}'"
with_indexed_items: groups['opencontrail_database']
when: item.0 == 0
- name: "set second or more cassandra host addresses"
set_fact:
# cassandra_addrs: "{{ cassandra_addrs }}, '{{ hostvars[item.1]['contrail_address'] }}'"
- cassandra_addrs: "{{ cassandra_addrs }}, '{{ haproxy_hosts[item] }}'"
+ cassandra_addrs: "{{ cassandra_addrs }}, '{{ haproxy_hosts[item.1] }}'"
with_indexed_items: groups['opencontrail_database']
when: item.0 > 0