From 75fc40a1e8a3a1491f4ca65b432aaac5eaf258d1 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 10 Jun 2021 01:00:40 -0400 Subject: [PATCH] Fix bug with nkipath --- daemon-common/zkhandler.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon-common/zkhandler.py b/daemon-common/zkhandler.py index 5cd79f70..015a17b6 100644 --- a/daemon-common/zkhandler.py +++ b/daemon-common/zkhandler.py @@ -675,8 +675,8 @@ class ZKSchema(object): for nchild in zkhandler.zk_conn.get_children(npath): nkpath = f'{npath}/{nchild}' for esikey in self.keys(sikey): - nkikey = f'{nkpath}/{esikey}' - if not zkhandler.zk_conn.exists(nkikey): + nkipath = f'{nkpath}/{esikey}' + if not zkhandler.zk_conn.exists(nkipath): result = False # These two have several children layers that must be parsed through @@ -743,9 +743,9 @@ class ZKSchema(object): for nchild in zkhandler.zk_conn.get_children(npath): nkpath = f'{npath}/{nchild}' for esikey in self.keys(sikey): - nkikey = f'{nkpath}/{esikey}' - if not zkhandler.zk_conn.exists(nkikey): - zkhandler.zk_conn.create(nkpath + self.path(ikey, nchild), ''.encode(zkhandler.encoding)) + nkipath = f'{nkpath}/{esikey}' + if not zkhandler.zk_conn.exists(nkipath): + zkhandler.zk_conn.create(nkipath, ''.encode(zkhandler.encoding)) # These two have several children layers that must be parsed through for elem in ['volume']: