summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsayalilunkad <sayali.92720@gmail.com>2015-10-05 16:57:47 +0200
committerDirk Mueller <dirk@dmllr.de>2015-10-22 11:40:58 +0200
commitc5cf7eccf9bf349685605c9b9e0eafe43d5dc1cb (patch)
treeff0f114ee40a555d2b0a1fb23fe94f5c9ed9ad82
parent53c618c733544e1a717bae492d4b76738d343159 (diff)
downloadhorizon-c5cf7eccf9bf349685605c9b9e0eafe43d5dc1cb.tar.gz
Adds deactivated status for glance image
This patch adds the status deactivated for images that have been deactivated in glance thus also fixes the issue with progress bar after image is deactivated. Change-Id: I24c9fecb3cf67e1a2a56a0443e272a34a3585a74 Closes-bug: #1482094 (cherry picked from commit 02ee3e41d4d7955cfb12b6e2deec3008c59e4bfb)
-rw-r--r--openstack_dashboard/dashboards/project/images/images/tables.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/openstack_dashboard/dashboards/project/images/images/tables.py b/openstack_dashboard/dashboards/project/images/images/tables.py
index fa77e01e5..6ec298d43 100644
--- a/openstack_dashboard/dashboards/project/images/images/tables.py
+++ b/openstack_dashboard/dashboards/project/images/images/tables.py
@@ -282,6 +282,7 @@ class ImagesTable(tables.DataTable):
("pending_delete", None),
("killed", False),
("deleted", False),
+ ("deactivated", False),
)
STATUS_DISPLAY_CHOICES = (
("active", pgettext_lazy("Current status of an Image", u"Active")),
@@ -291,6 +292,8 @@ class ImagesTable(tables.DataTable):
u"Pending Delete")),
("killed", pgettext_lazy("Current status of an Image", u"Killed")),
("deleted", pgettext_lazy("Current status of an Image", u"Deleted")),
+ ("deactivated", pgettext_lazy("Current status of an Image",
+ u"Deactivated")),
)
TYPE_CHOICES = (
("image", pgettext_lazy("Type of an image", u"Image")),