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:
Simon Westphahl 2023-03-14 08:37:00 +01:00
parent 0d35927e2c
commit 48b6f3f7df
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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)