summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2018-11-30 15:05:51 -0800
committerJames E. Blair <jeblair@redhat.com>2018-11-30 15:05:51 -0800
commit5fee6be8101286e317ecbce6f201d024a92db286 (patch)
tree2df0a4d413c2d81fedde3273e64ee8fd74e29bd5
parent85968314bd472c13695d5d178d4b8a2db968c6e6 (diff)
Add relative priority to request list
Notes
Notes (review): Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de> Code-Review+2: Monty Taylor <mordred@inaugust.com> Workflow+1: Monty Taylor <mordred@inaugust.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sat, 01 Dec 2018 14:20:20 +0000 Reviewed-on: https://review.openstack.org/621314 Project: openstack-infra/nodepool Branch: refs/heads/master
-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]