Browse Source

Merge "Ensure last_update is initialized before used"

changes/59/694059/9
Zuul 2 weeks ago
parent
commit
6441a6e3dd
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      kuryr_kubernetes/controller/drivers/vif_pool.py

+ 1
- 0
kuryr_kubernetes/controller/drivers/vif_pool.py View File

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

Loading…
Cancel
Save