Commit 73943c7
committed
flux-resource: abstract fetch of resource list
Problem: The fetch of reosurce list and config may be a common
operation in the flux-resource command, but is currently embedded in
the list command function list_handler().
Add a `get_resource_list()` function that combines the common
operations of fetching the scheduler resource list and instance config,
processing the --states and --include options.1 parent ade38ce commit 73943c7
1 file changed
+24
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
510 | 513 | | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | 514 | | |
524 | 515 | | |
525 | | - | |
526 | | - | |
| 516 | + | |
| 517 | + | |
527 | 518 | | |
528 | 519 | | |
529 | 520 | | |
| |||
544 | 535 | | |
545 | 536 | | |
546 | 537 | | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
547 | 555 | | |
548 | 556 | | |
549 | 557 | | |
550 | 558 | | |
551 | | - | |
| 559 | + | |
552 | 560 | | |
553 | 561 | | |
554 | 562 | | |
| |||
0 commit comments