Always show stack status reason in topology

Currently, only when the stack is in error status, the stack status
reason will be displayed, otherwise, there will be two line with
exactly same words, and this makes the enduser confuse. So fixes
this by changing to not show anything when stack in not in error
status.

Change-Id: Ifcd8def6b452ecccef9a8daa0e31504cffa2d6ad
Closes-bug: #1428580
This commit is contained in:
liyingjun 2015-03-09 13:52:22 +08:00
parent 699e423010
commit 69d25c4ca3
1 changed files with 1 additions and 3 deletions

View File

@ -6,11 +6,9 @@
<div class="clear"></div>
{% if stack.stack_status == 'CREATE_FAILED' %}
<p class="error">{{ stack.stack_status_reason }}</p>
{% else %}
<p>{{ stack.stack_status_desc }}</p>
{% endif %}
{% for output in stack.outputs %}
{% if output.output_key == 'WebsiteURL' %}
<a href="{{ output.output_value }}">{{ output.description }}</a>
{% endif %}
{% endfor %}
{% endfor %}