summaryrefslogtreecommitdiff
path: root/tuskar_ui/infrastructure/images/tables.py
diff options
context:
space:
mode:
Diffstat (limited to 'tuskar_ui/infrastructure/images/tables.py')
-rw-r--r--tuskar_ui/infrastructure/images/tables.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tuskar_ui/infrastructure/images/tables.py b/tuskar_ui/infrastructure/images/tables.py
index 8bd8bbf4..bbc8c0a9 100644
--- a/tuskar_ui/infrastructure/images/tables.py
+++ b/tuskar_ui/infrastructure/images/tables.py
@@ -61,9 +61,9 @@ class ImagesTable(tables.DataTable):
verbose_name=_("Image Name"))
disk_format = tables.Column('disk_format',
verbose_name=_("Format"))
- role = tables.Column(lambda image:
- image.role.name if image.role else '-',
- verbose_name=_("Deployment Role"))
+ roles = tables.Column(lambda image:
+ ', '.join([r.name for r in image.roles]),
+ verbose_name=_("Deployment Roles"))
class Meta(object):
name = "images"