diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-03-17 05:09:57 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-03-17 05:09:57 +0000 |
commit | 5159d59c9ae42ac4c9b3bee5368d1ba609cac077 (patch) | |
tree | d0c5d953926437e79a81f8a291bfcb6c5a76d72d /nova | |
parent | 3601f71f31d740218829d8a65a67fc9b41724853 (diff) | |
parent | 536565d963330e1c93a8492529c8fb2bdf03d946 (diff) | |
download | nova-5159d59c9ae42ac4c9b3bee5368d1ba609cac077.tar.gz |
Merge "Variable 'name' already declared in 'for' loop"
Diffstat (limited to 'nova')
-rw-r--r-- | nova/api/openstack/compute/views/limits.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/compute/views/limits.py b/nova/api/openstack/compute/views/limits.py index 431721f2b9..fa079d6c28 100644 --- a/nova/api/openstack/compute/views/limits.py +++ b/nova/api/openstack/compute/views/limits.py @@ -60,8 +60,8 @@ class ViewBuilder(object): limits = {} for name, value in absolute_limits.iteritems(): if name in self.limit_names and value is not None: - for name in self.limit_names[name]: - limits[name] = value + for limit_name in self.limit_names[name]: + limits[limit_name] = value return limits def _build_rate_limits(self, rate_limits): |