summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2019-01-10 02:32:09 +0000
committerTristan Cacqueray <tdecacqu@redhat.com>2019-01-10 02:32:09 +0000
commit7fd6411dac109384a47b672b2f97313980cee687 (patch)
tree24a1dced4e0b7215618ca3e5de4c1ad418f38c27
parent264c3478fab2c3c283396ec6d79dd6c0ae9f4cc7 (diff)
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
Notes
Notes (review): Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de> Code-Review+2: David Shrewsbury <shrewsbury.dave@gmail.com> Workflow+1: David Shrewsbury <shrewsbury.dave@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 10 Jan 2019 15:00:43 +0000 Reviewed-on: https://review.openstack.org/629754 Project: openstack-infra/nodepool Branch: refs/heads/master
-rwxr-xr-x[-rw-r--r--]tools/print-zk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/print-zk.py b/tools/print-zk.py
index e9eb1dd..23aab5f 100644..100755
--- a/tools/print-zk.py
+++ b/tools/print-zk.py
@@ -31,7 +31,7 @@ args = parser.parse_args()
31config = nodepool.config.loadConfig(args.config) 31config = nodepool.config.loadConfig(args.config)
32 32
33zk = nodepool.zk.ZooKeeper(enable_cache=False) 33zk = nodepool.zk.ZooKeeper(enable_cache=False)
34zk.connect(config.zookeeper_servers.values()) 34zk.connect(list(config.zookeeper_servers.values()))
35 35
36def join(a, b): 36def join(a, b):
37 if a.endswith('/'): 37 if a.endswith('/'):