Commit 777145b
committed
flux-resource: use a set type for args.queue
Problem: The `-q, --queue` option for all flux-resource(1) subcommands
takes a comma separated list of queues and args.queue is a string
which has to be split at the comma in place when used. This not only
duplicates work, but is error prone since the string itself is also
iterable and a forgotten args.queue.split() would cause the code to
treat each character as a queue.
Store args.queue as a set() using flux.util.FilterActionSetUpdate.
Update sites where args.queue.split(",") is no longer necessary.1 parent 72b2ab2 commit 777145b
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
| 762 | + | |
| 763 | + | |
762 | 764 | | |
763 | 765 | | |
764 | 766 | | |
| |||
824 | 826 | | |
825 | 827 | | |
826 | 828 | | |
| 829 | + | |
| 830 | + | |
827 | 831 | | |
828 | 832 | | |
829 | 833 | | |
| |||
879 | 883 | | |
880 | 884 | | |
881 | 885 | | |
| 886 | + | |
| 887 | + | |
882 | 888 | | |
883 | 889 | | |
884 | 890 | | |
| |||
911 | 917 | | |
912 | 918 | | |
913 | 919 | | |
| 920 | + | |
| 921 | + | |
914 | 922 | | |
915 | 923 | | |
916 | 924 | | |
| |||
959 | 967 | | |
960 | 968 | | |
961 | 969 | | |
| 970 | + | |
| 971 | + | |
962 | 972 | | |
963 | 973 | | |
964 | 974 | | |
| |||
0 commit comments