Skip to content

Commit

Permalink
bug #1001313, using dict(list) method to support python2.6
Browse files Browse the repository at this point in the history
Change-Id: Idd372aa80f81f77a76fd53d26afbd61c4ffa78eb
  • Loading branch information
kewu21 committed May 21, 2012
1 parent 524d7ff commit 0d3ea26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horizon/dashboards/nova/access_and_security/views.py
Expand Up @@ -78,7 +78,7 @@ def get_floating_ips_data(self):
exceptions.handle(self.request,
_('Unable to retrieve instance list.'))

instances_dict = {obj.id: obj for obj in instances}
instances_dict = dict([(obj.id, obj) for obj in instances])

for ip in floating_ips:
ip.instance_name = instances_dict[ip.instance_id].name \
Expand Down

0 comments on commit 0d3ea26

Please sign in to comment.