Fix variable name in job request queue log message
Traceback (most recent call last):
File "/opt/zuul/lib/python3.10/site-packages/zuul/zk/job_request_queue.py", line 612, in cleanup
"Unable to delete lock %s", path)
UnboundLocalError: local variable 'path' referenced before assignment
Change-Id: I9d76abce0f6e539374765bc7a988484548fda3f6
This commit is contained in:
@@ -609,7 +609,7 @@ class JobRequestQueue(ZooKeeperSimpleBase):
|
||||
self.kazoo_client.delete(lock_path, recursive=True)
|
||||
except Exception:
|
||||
self.log.exception(
|
||||
"Unable to delete lock %s", path)
|
||||
"Unable to delete lock %s", lock_path)
|
||||
except Exception:
|
||||
self.log.exception("Error cleaning up locks %s", self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user