Browse Source

Fix encoding for python3 lock naming

Change-Id: I2667f813e4920bada6f8026c2230bb64cb838cb6
tags/1.3.0^0
Julia Kreger 7 months ago
parent
commit
59cf11bee6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      networking_generic_switch/locking.py

+ 1
- 1
networking_generic_switch/locking.py View File

@@ -57,7 +57,7 @@ class PoolLock(object):
57 57
             # NOTE(pas-ha) currently all tooz backends support locking API.
58 58
             # In case this changes, this should be wrapped to not respin
59 59
             # lock grabbing on NotImplemented exception.
60
-            lock = self.coordinator.get_lock(name)
60
+            lock = self.coordinator.get_lock(name.encode())
61 61
             locked = lock.acquire(blocking=False)
62 62
             if not locked:
63 63
                 raise coordination.LockAcquireFailed(

Loading…
Cancel
Save