Skip to content

Commit 901cba7

Browse files
saffroyjeffwidman
authored andcommitted
fix(core): get_children with include_data=True uses GetChildren2 types (#514)
1 parent 3033091 commit 901cba7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kazoo/protocol/connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
Connect,
2424
Exists,
2525
GetChildren,
26+
GetChildren2,
2627
Ping,
2728
PingInstance,
2829
ReplyHeader,
@@ -398,7 +399,7 @@ def _read_response(self, header, buffer, offset):
398399
# Determine if watchers should be registered
399400
watcher = getattr(request, 'watcher', None)
400401
if not client._stopped.is_set() and watcher:
401-
if isinstance(request, GetChildren):
402+
if isinstance(request, (GetChildren, GetChildren2)):
402403
client._child_watchers[request.path].add(watcher)
403404
else:
404405
client._data_watchers[request.path].add(watcher)

0 commit comments

Comments
 (0)