Browse Source

print-zk: convert zookeeper_servers to a list

The print-zk script needs to convert the dictionary iterator to a proper list.

Change-Id: I786799ff881c361071fa06c78541c617fc7461a9
tags/3.5.0
Tristan Cacqueray 4 months ago
parent
commit
7fd6411dac
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tools/print-zk.py

+ 1
- 1
tools/print-zk.py View File

@@ -31,7 +31,7 @@ args = parser.parse_args()
31 31
 config = nodepool.config.loadConfig(args.config)
32 32
 
33 33
 zk = nodepool.zk.ZooKeeper(enable_cache=False)
34
-zk.connect(config.zookeeper_servers.values())
34
+zk.connect(list(config.zookeeper_servers.values()))
35 35
 
36 36
 def join(a, b):
37 37
     if a.endswith('/'):

Loading…
Cancel
Save