diff --git a/openstack_dashboard/dashboards/admin/info/tables.py b/openstack_dashboard/dashboards/admin/info/tables.py index d4f3fe74e8..a123fab4b2 100644 --- a/openstack_dashboard/dashboards/admin/info/tables.py +++ b/openstack_dashboard/dashboards/admin/info/tables.py @@ -127,6 +127,10 @@ def get_metadata(aggregate): in aggregate.metadata.iteritems()] +def safe_unordered_list(value): + return filters.unordered_list(value, autoescape=True) + + class AggregatesTable(tables.DataTable): name = tables.Column("name", verbose_name=_("Name")) @@ -135,11 +139,11 @@ class AggregatesTable(tables.DataTable): hosts = tables.Column(get_hosts, verbose_name=_("Hosts"), wrap_list=True, - filters=(filters.unordered_list,)) + filters=(safe_unordered_list,)) metadata = tables.Column(get_metadata, verbose_name=_("Metadata"), wrap_list=True, - filters=(filters.unordered_list,)) + filters=(safe_unordered_list,)) class Meta: name = "aggregates"