summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-12-01 20:44:29 +0000
committerGerrit Code Review <review@openstack.org>2018-12-01 20:44:29 +0000
commitf116826d2b37dddfb52056af8d80befc408a776a (patch)
tree549b32d0922bc925a41dfb3fe53cdbba6b6f505b
parent79c212314a1862e8404f1b64a209da2884a6202a (diff)
parentcacedff80e90616723bb9f7b9e064c93aa413331 (diff)
Merge "Fix print-zk tool for python3"
-rw-r--r--tools/print-zk.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/print-zk.py b/tools/print-zk.py
index a609eb8..e9eb1dd 100644
--- a/tools/print-zk.py
+++ b/tools/print-zk.py
@@ -40,12 +40,12 @@ def join(a, b):
40 40
41def print_tree(node): 41def print_tree(node):
42 data, stat = zk.client.get(node) 42 data, stat = zk.client.get(node)
43 print "Node: %s %s" % (node, stat) 43 print("Node: %s %s" % (node, stat))
44 if data: 44 if data:
45 print data 45 print(data)
46 46
47 for child in zk.client.get_children(node): 47 for child in zk.client.get_children(node):
48 print 48 print()
49 print_tree(join(node, child)) 49 print_tree(join(node, child))
50 50
51print_tree('/') 51print_tree('/')