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:
Tristan Cacqueray 2019-01-10 02:32:09 +00:00
parent 264c3478fa
commit 7fd6411dac

2
tools/print-zk.py Normal file → Executable file
View 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('/'):