Merge "Fix dynamic executor appending to objects"

This commit is contained in:
Zuul 2019-10-14 14:23:54 +00:00 committed by Gerrit Code Review
commit 53b7c3cffb
2 changed files with 2 additions and 2 deletions

View File

@ -1152,7 +1152,7 @@ class PythonImageUploader(BaseImageUploader):
LOG.debug('Starting acquire for lock %s' % layer)
with lock.get_lock():
LOG.debug('Acquired for unlock %s' % layer)
if layer in lock.objects():
while layer in lock.objects():
lock.objects().remove(layer)
LOG.debug('Updated lock info %s' % layer)
LOG.debug('Released lock on layer %s' % layer)

View File

@ -19,4 +19,4 @@ import threading
class ThreadingLock(base.BaseLock):
def __init__(self):
self._lock = threading.Lock()
self._objects = set()
self._objects = []