Commit caa6acc
committed
flux-resource: add queue argument to ResourceSetExtra initializer
Problem: An empty resource set cannot have any associated properties
and therefore cannot be in a queue. However, in `flux resource list`
output, it may be useful to display an "empty" line of output for one
or more queues. For instance, when no nodes are allocated, down, etc.
Allow the ResourceSetExtra class to have a forced queue associated
with it. If set in the initializer, then instead of iterating
properties to deterimine the resource set queue the manually set
queue is simply returned. This allows an empty resource set to have
an associated queue.1 parent 777145b commit caa6acc
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
| 495 | + | |
496 | 496 | | |
| 497 | + | |
497 | 498 | | |
498 | 499 | | |
499 | 500 | | |
| |||
517 | 518 | | |
518 | 519 | | |
519 | 520 | | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
520 | 528 | | |
521 | 529 | | |
522 | 530 | | |
| |||
0 commit comments