Skip to content

Commit

Permalink
Fix errors in used_limits extension
Browse files Browse the repository at this point in the history
Fixes bug #1062049

There was a typo mapping the security groups resource to floating IPs.

Key pairs don't work with the extension because of bug #1089877.

(cherry picked from commit 6c9d9ab)

Change-Id: Ifd694b21fef1dc95e67c07dcef0cd6ea3daa8d53
  • Loading branch information
markmc committed Dec 14, 2012
1 parent 9e62846 commit f864a4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nova/api/openstack/compute/contrib/used_limits.py
Expand Up @@ -51,8 +51,8 @@ def index(self, req, resp_obj):
'totalInstancesUsed': 'instances',
'totalVolumesUsed': 'volumes',
'totalVolumeGigabytesUsed': 'gigabytes',
'totalSecurityGroupsUsed': 'floating_ips',
'totalKeyPairsUsed': 'key_pairs',
'totalFloatingIpsUsed': 'floating_ips',
'totalSecurityGroupsUsed': 'security_groups',
}
used_limits = {}
for display_name, quota in quota_map.iteritems():
Expand Down
4 changes: 2 additions & 2 deletions nova/tests/api/openstack/compute/contrib/test_used_limits.py
Expand Up @@ -52,8 +52,8 @@ def test_used_limits(self):
'totalInstancesUsed': 'instances',
'totalVolumesUsed': 'volumes',
'totalVolumeGigabytesUsed': 'gigabytes',
'totalSecurityGroupsUsed': 'floating_ips',
'totalKeyPairsUsed': 'key_pairs',
'totalFloatingIpsUsed': 'floating_ips',
'totalSecurityGroupsUsed': 'security_groups',
}
limits = {}
for display_name, q in quota_map.iteritems():
Expand Down

0 comments on commit f864a4e

Please sign in to comment.