Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailBurdukov committed Feb 8, 2024
1 parent 182d9b0 commit e0ddb5a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ch_tools/chadmin/internal/zookeeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@

def get_zk_node(ctx, path, binary=False):
with zk_client(ctx) as zk:
return _get_zk_node(zk, ctx, path, binary)


def _get_zk_node(zk, ctx, path, binary):
path = _format_path(ctx, path)
value = zk.get(path)[0]
return value if binary else value.decode().strip()
path = _format_path(ctx, path)
value = zk.get(path)[0]
return value if binary else value.decode().strip()


def check_zk_node(ctx, path):
Expand Down

0 comments on commit e0ddb5a

Please sign in to comment.