Merge "Add reserved status key word to horizon"
This commit is contained in:
commit
26277a3715
|
@ -36,7 +36,7 @@ from openstack_dashboard.dashboards.project.volumes.tables \
|
||||||
# This set of states was pulled from cinder's admin_actions.py
|
# This set of states was pulled from cinder's admin_actions.py
|
||||||
SETTABLE_STATUSES = (
|
SETTABLE_STATUSES = (
|
||||||
'attaching', 'available', 'creating', 'deleting', 'detaching', 'error',
|
'attaching', 'available', 'creating', 'deleting', 'detaching', 'error',
|
||||||
'error_deleting', 'in-use', 'maintenance')
|
'error_deleting', 'in-use', 'maintenance', 'reserved')
|
||||||
STATUS_CHOICES = tuple(
|
STATUS_CHOICES = tuple(
|
||||||
status for status in volumes_table.STATUS_DISPLAY_CHOICES
|
status for status in volumes_table.STATUS_DISPLAY_CHOICES
|
||||||
if status[0] in SETTABLE_STATUSES
|
if status[0] in SETTABLE_STATUSES
|
||||||
|
|
|
@ -448,6 +448,8 @@ class VolumesTableBase(tables.DataTable):
|
||||||
u"Error Restoring")),
|
u"Error Restoring")),
|
||||||
("maintenance", pgettext_lazy("Current status of a Volume",
|
("maintenance", pgettext_lazy("Current status of a Volume",
|
||||||
u"Maintenance")),
|
u"Maintenance")),
|
||||||
|
("reserved", pgettext_lazy("Current status of a Volume",
|
||||||
|
u"Reserved")),
|
||||||
)
|
)
|
||||||
name = tables.Column("name",
|
name = tables.Column("name",
|
||||||
verbose_name=_("Name"),
|
verbose_name=_("Name"),
|
||||||
|
|
Loading…
Reference in New Issue