Merge "Fix UnhashableKeyWarning when calling get_security_groups function"

This commit is contained in:
Zuul 2017-10-20 23:48:54 +00:00 committed by Gerrit Code Review
commit ce3bd3208e
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,8 @@ class DetailView(tabs.TabbedTableView):
port.network_url = reverse(network_url, args=[port.network_id])
for ip in port.fixed_ips:
ip['subnet_url'] = reverse(subnet_url, args=[ip['subnet_id']])
port.security_groups = self.get_security_groups(port.security_groups)
port.security_groups = self.get_security_groups(
tuple(port.security_groups))
table = project_tables.PortsTable(self.request,
network_id=port.network_id)
# TODO(robcresswell) Add URL for "Ports" crumb after bug/1416838