Cluster details page should list all endpoints
Currently only one endpoint is shown in the cluster details tab. Instead, this should be a comma-separated list. Make the appropriate change to the MongoDB and redis templates. Change-Id: I85c67119174e576134862e7d971b6b9df3f674ac Closes-bug: #1554623
This commit is contained in:
parent
7ff6706b09
commit
b510b4e76c
@ -0,0 +1,4 @@
|
||||
---
|
||||
fixes:
|
||||
- Display all endpoints in the dashboard's cluster
|
||||
details endpoint list.
|
@ -7,13 +7,10 @@
|
||||
<dl>
|
||||
{% with cluster.ip.0 as ip %}
|
||||
<dt>{% trans "Host" %}</dt>
|
||||
<dd>
|
||||
{% if not ip %}
|
||||
{% trans "Not Assigned" %}
|
||||
</dd>
|
||||
<dd>{% trans "Not Assigned" %}</dd>
|
||||
{% else %}
|
||||
{{ ip }}
|
||||
</dd>
|
||||
<dd>{{ cluster.ip|join:', ' }}</dd>
|
||||
<dt>{% trans "Database Port" %}</dt>
|
||||
<dd>27017</dd>
|
||||
<dt>{% trans "Connection Examples" %}</dt>
|
||||
|
@ -10,7 +10,7 @@
|
||||
{% if not ip %}
|
||||
<dd>{% trans "Not Assigned" %}</dd>
|
||||
{% else %}
|
||||
<dd>{{ ip }}</dd>
|
||||
<dd>{{ cluster.ip|join:', ' }}</dd>
|
||||
<dt>{% trans "Connection Examples" %}</dt>
|
||||
<dd>redis-cli -h {{ ip }}</dd>
|
||||
{% endif %} <!-- ends else block -->
|
||||
|
Loading…
Reference in New Issue
Block a user