From c906c0fb76b703c65e5e0f442567357f5f64a70f Mon Sep 17 00:00:00 2001 From: Timur Sufiev Date: Wed, 23 Apr 2014 18:53:03 +0400 Subject: [PATCH] Fix showing Component status in an Environment Fixed status line for the component in environment Change-Id: I3eee7cde71410faa523e87ab1ab550ac22976839 Closes-Bug: #1304893 --- muranodashboard/environments/tables.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/muranodashboard/environments/tables.py b/muranodashboard/environments/tables.py index 7e4f9359a..a74e5241a 100644 --- a/muranodashboard/environments/tables.py +++ b/muranodashboard/environments/tables.py @@ -256,15 +256,13 @@ class ServicesTable(tables.DataTable): _type = tables.Column(get_service_type, verbose_name=_('Type')) - status = tables.Column('status', + status = tables.Column(lambda datum: datum['?'].get('status'), verbose_name=_('Status'), status=True, status_choices=STATUS_CHOICES, display_choices=STATUS_DISPLAY_CHOICES) - operation = tables.Column('operation', verbose_name=_('Last operation')) - operation_updated = tables.Column('operation_updated', verbose_name=_('Time updated'))