Merge "admin not able to set maintenance state for volume"

This commit is contained in:
Jenkins 2015-10-19 04:36:33 +00:00 committed by Gerrit Code Review
commit 1b0fe09e3d
2 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@ STATUS_CHOICES = (
('error', _('Error')),
('error_deleting', _('Error Deleting')),
('in-use', _('In Use')),
('maintenance', _('Maintenance')),
)

View File

@ -367,6 +367,7 @@ class VolumesTableBase(tables.DataTable):
("creating", None),
("error", False),
("error_extending", False),
("maintenance", False),
)
STATUS_DISPLAY_CHOICES = (
("available", pgettext_lazy("Current status of a Volume",
@ -393,6 +394,8 @@ class VolumesTableBase(tables.DataTable):
u"Restoring Backup")),
("error_restoring", pgettext_lazy("Current status of a Volume",
u"Error Restoring")),
("maintenance", pgettext_lazy("Current status of a Volume",
u"Maintenance")),
)
name = tables.Column("name",
verbose_name=_("Name"),