Browse Source

Add relative priority to request list

Change-Id: Ief6dfc800097aa239d07a50c34bc72dcb328d4c5
James E. Blair 4 months ago
parent
commit
5fee6be810
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      nodepool/status.py

+ 3
- 1
nodepool/status.py View File

@@ -232,6 +232,7 @@ def image_list(zk):
232 232
 def request_list(zk):
233 233
     headers_table = OrderedDict([
234 234
         ("id", "Request ID"),
235
+        ("relative_priority", "Priority"),
235 236
         ("state", "State"),
236 237
         ("requestor", "Requestor"),
237 238
         ("node_types", "Node Types"),
@@ -239,7 +240,8 @@ def request_list(zk):
239 240
         ("declined_by", "Declined By")])
240 241
     objs = []
241 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 245
                   req.node_types,
244 246
                   req.nodes,
245 247
                   req.declined_by]

Loading…
Cancel
Save