summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-12-01 14:20:20 +0000
committerGerrit Code Review <review@openstack.org>2018-12-01 14:20:20 +0000
commit79c212314a1862e8404f1b64a209da2884a6202a (patch)
treef8bce95433bfda7f08ac60f40265f40b388f42ef
parent177e3c1f6f1e905dfb548729c70a84ced1656e30 (diff)
parent5fee6be8101286e317ecbce6f201d024a92db286 (diff)
Merge "Add relative priority to request list"
-rwxr-xr-xnodepool/status.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nodepool/status.py b/nodepool/status.py
index e21e9bb..3ee7ddd 100755
--- a/nodepool/status.py
+++ b/nodepool/status.py
@@ -232,6 +232,7 @@ def image_list(zk):
232def request_list(zk): 232def request_list(zk):
233 headers_table = OrderedDict([ 233 headers_table = OrderedDict([
234 ("id", "Request ID"), 234 ("id", "Request ID"),
235 ("relative_priority", "Priority"),
235 ("state", "State"), 236 ("state", "State"),
236 ("requestor", "Requestor"), 237 ("requestor", "Requestor"),
237 ("node_types", "Node Types"), 238 ("node_types", "Node Types"),
@@ -239,7 +240,8 @@ def request_list(zk):
239 ("declined_by", "Declined By")]) 240 ("declined_by", "Declined By")])
240 objs = [] 241 objs = []
241 for req in zk.nodeRequestIterator(): 242 for req in zk.nodeRequestIterator():
242 values = [req.id, req.state, req.requestor, 243 values = [req.id, req.relative_priority,
244 req.state, req.requestor,
243 req.node_types, 245 req.node_types,
244 req.nodes, 246 req.nodes,
245 req.declined_by] 247 req.declined_by]