Add delete function to zkhandler

This commit is contained in:
Joshua Boniface 2018-09-30 02:52:22 -04:00
parent 197abf66f4
commit 505a951a7d
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ def listchildren(zk_conn, key):
children = zk_conn.get_children(key)
return children
# Key deletion function
def delete(zk_conn, key):
zk_conn.delete(key, recursive=True)
# Data read function
def readdata(zk_conn, key):
data_raw = zk_conn.get(key)