From 99d723dd8b0060b58e5d227b107fc94d3c3cdf72 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 7 Nov 2020 13:39:51 -0500 Subject: [PATCH] Lint: F821 undefined name 'count' --- daemon-common/zkhandler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon-common/zkhandler.py b/daemon-common/zkhandler.py index 3a205b0b..cee921d6 100644 --- a/daemon-common/zkhandler.py +++ b/daemon-common/zkhandler.py @@ -125,6 +125,7 @@ def writedata(zk_conn, kv): # Write lock function def writelock(zk_conn, key): + count = 1 while True: try: lock_id = str(uuid.uuid1()) @@ -141,6 +142,7 @@ def writelock(zk_conn, key): # Read lock function def readlock(zk_conn, key): + count = 1 while True: try: lock_id = str(uuid.uuid1())