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:
parent
0d35927e2c
commit
48b6f3f7df
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue