Fix showing Component status in an Environment

Fixed status line for the component in environment

Change-Id: I3eee7cde71410faa523e87ab1ab550ac22976839
Closes-Bug: #1304893
This commit is contained in:
Timur Sufiev 2014-04-23 18:53:03 +04:00 committed by Georgy Okrokvertskhov
parent 3269374769
commit c906c0fb76
1 changed files with 1 additions and 3 deletions

View File

@ -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'))