Add reserved status key word to horizon

Horizon don't have related change which align with the
change in https://review.openstack.org/#/c/330285.
With this fix, horizon can work as expected

Change-Id: I5940c662a0bec2beaf4863e07f7244311ba51212
Closes-Bug: #1770326
Signed-off-by: GUO Larry <guo1017138@163.com>
This commit is contained in:
Larry GUO 2018-05-10 08:09:58 +00:00
parent 17ce74e4f0
commit 4776428cb6
2 changed files with 3 additions and 1 deletions

View File

@ -36,7 +36,7 @@ from openstack_dashboard.dashboards.project.volumes.tables \
# This set of states was pulled from cinder's admin_actions.py
SETTABLE_STATUSES = (
'attaching', 'available', 'creating', 'deleting', 'detaching', 'error',
'error_deleting', 'in-use', 'maintenance')
'error_deleting', 'in-use', 'maintenance', 'reserved')
STATUS_CHOICES = tuple(
status for status in volumes_table.STATUS_DISPLAY_CHOICES
if status[0] in SETTABLE_STATUSES

View File

@ -448,6 +448,8 @@ class VolumesTableBase(tables.DataTable):
u"Error Restoring")),
("maintenance", pgettext_lazy("Current status of a Volume",
u"Maintenance")),
("reserved", pgettext_lazy("Current status of a Volume",
u"Reserved")),
)
name = tables.Column("name",
verbose_name=_("Name"),