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
This commit is contained in:
parent
264c3478fa
commit
7fd6411dac
2
tools/print-zk.py
Normal file → Executable file
2
tools/print-zk.py
Normal file → Executable file
@ -31,7 +31,7 @@ args = parser.parse_args()
|
||||
config = nodepool.config.loadConfig(args.config)
|
||||
|
||||
zk = nodepool.zk.ZooKeeper(enable_cache=False)
|
||||
zk.connect(config.zookeeper_servers.values())
|
||||
zk.connect(list(config.zookeeper_servers.values()))
|
||||
|
||||
def join(a, b):
|
||||
if a.endswith('/'):
|
||||
|
Loading…
Reference in New Issue
Block a user