Merge "Fix py3 compatibility"

This commit is contained in:
Zuul 2019-09-16 15:32:17 +00:00 committed by Gerrit Code Review
commit c8ef65a210
1 changed files with 1 additions and 1 deletions

View File

@ -876,7 +876,7 @@ class L3NATAgent(ha.AgentMixin,
except oslo_messaging.MessagingTimeout:
if self.sync_routers_chunk_size > SYNC_ROUTERS_MIN_CHUNK_SIZE:
self.sync_routers_chunk_size = max(
self.sync_routers_chunk_size / 2,
self.sync_routers_chunk_size // 2,
SYNC_ROUTERS_MIN_CHUNK_SIZE)
LOG.error('Server failed to return info for routers in '
'required time, decreasing chunk size to: %s',