Add delete function to zkhandler
This commit is contained in:
parent
197abf66f4
commit
505a951a7d
|
@ -28,6 +28,10 @@ def listchildren(zk_conn, key):
|
||||||
children = zk_conn.get_children(key)
|
children = zk_conn.get_children(key)
|
||||||
return children
|
return children
|
||||||
|
|
||||||
|
# Key deletion function
|
||||||
|
def delete(zk_conn, key):
|
||||||
|
zk_conn.delete(key, recursive=True)
|
||||||
|
|
||||||
# Data read function
|
# Data read function
|
||||||
def readdata(zk_conn, key):
|
def readdata(zk_conn, key):
|
||||||
data_raw = zk_conn.get(key)
|
data_raw = zk_conn.get(key)
|
||||||
|
|
Loading…
Reference in New Issue