diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-05-29 00:08:49 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-05-29 00:08:49 +0000 |
| commit | 719d077ed7797954b89c3c69f5a09b5f20fda71f (patch) | |
| tree | f7c3b16abddad985236f9a4ef7abaade187b1e14 /nova | |
| parent | 3292c5ca0c5328ab426cd217ed7e739740d282ca (diff) | |
| parent | d534b290a12235f4e6d9afcbfb9d3aba4486e6cc (diff) | |
Merge "Fix and enable flake8 F823"
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/tests/test_instance_types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/test_instance_types.py b/nova/tests/test_instance_types.py index e20845f1d..d8a915730 100644 --- a/nova/tests/test_instance_types.py +++ b/nova/tests/test_instance_types.py @@ -31,8 +31,8 @@ class InstanceTypeTestCase(test.TestCase): def _generate_name(self): """return a name not in the DB.""" nonexistent_flavor = str(int(time.time())) - flavors = flavors.get_all_types() - while nonexistent_flavor in flavors: + all_flavors = flavors.get_all_types() + while nonexistent_flavor in all_flavors: nonexistent_flavor += "z" else: return nonexistent_flavor |
