diff options
author | Claudiu Belu <cbelu@cloudbasesolutions.com> | 2015-12-07 05:10:26 +0200 |
---|---|---|
committer | Claudiu Belu <cbelu@cloudbasesolutions.com> | 2016-02-09 10:05:09 +0000 |
commit | 5fe5ceea488e7587b57e9281dafcaf3dc25a6f86 (patch) | |
tree | f622d34eb334ba4863a609f34e2909b40f116c70 /nova/network | |
parent | e5269b3a8f95c41283a9e6109835142586fe62a6 (diff) | |
download | nova-5fe5ceea488e7587b57e9281dafcaf3dc25a6f86.tar.gz |
Fixes network py3 unit tests
Enables some unit tests for gate-nova-python34.
Partially Implements: blueprint nova-python3-mitaka
Change-Id: Ib311125cdae9430d8d7529f70d6756b32e4ddcda
Diffstat (limited to 'nova/network')
-rw-r--r-- | nova/network/manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/network/manager.py b/nova/network/manager.py index c6df78709c..ce688ec641 100644 --- a/nova/network/manager.py +++ b/nova/network/manager.py @@ -1281,9 +1281,9 @@ class NetworkManager(manager.Manager): used_subnets = [net.cidr for net in nets] def find_next(subnet): - next_subnet = next(subnet) + next_subnet = subnet.next() while next_subnet in subnets_v4: - next_subnet = next(next_subnet) + next_subnet = next_subnet.next() if next_subnet in fixed_net_v4: return next_subnet |