Merge "Ensure last_update is initialized before used"

This commit is contained in:
Zuul 2019-11-20 10:31:01 +00:00 committed by Gerrit Code Review
commit 6441a6e3dd
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ class BaseVIFPool(base.VIFPoolDriver):
# from the pool_key, which will be required when multi-network is # from the pool_key, which will be required when multi-network is
# supported # supported
now = time.time() now = time.time()
last_update = 0
pool_updates = self._last_update.get(pool_key) pool_updates = self._last_update.get(pool_key)
if pool_updates: if pool_updates:
last_update = pool_updates.get(security_groups, 0) last_update = pool_updates.get(security_groups, 0)