diff options
author | Dario Faggioli <dario.faggioli@citrix.com> | 2013-09-11 13:06:22 +0200 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2013-10-11 18:54:06 +0100 |
commit | 375888802b035082e91a1c63df6defcf2694987e (patch) | |
tree | 1f11910ae4b410deb27111337b35501e4be0c129 | |
parent | 2350e70ee06c903a927340f7a0bf9ca25acce3f3 (diff) | |
download | xen-375888802b035082e91a1c63df6defcf2694987e.tar.gz xen-375888802b035082e91a1c63df6defcf2694987e.tar.bz2 xen-375888802b035082e91a1c63df6defcf2694987e.zip |
xl: fix `xl cpupool-list' behavior in case no pool name is provided
since it errors out, asking for at least one argument, and does
not display any useful output, which is wrong (we want the list
and the info about all the existing cpupools).
IOW, the output is as follows:
~# xl cpupool-list -c
'xl cpupool-list' requires at least 1 argument.
...
While it should be as follows:
~# xl cpupool-list -c
Name CPU list
Pool-0 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
(cherry picked from commit 3998afdbf99959582dcd9f9f4df5a6fe7ce4ded8)
-rw-r--r-- | tools/libxl/xl_cmdimpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 8a478ba610..f5943a4eaf 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -6540,7 +6540,7 @@ int main_cpupoollist(int argc, char **argv) char *name; int ret = 0; - SWITCH_FOREACH_OPT(opt, "hc", opts, "cpupool-list", 1) { + SWITCH_FOREACH_OPT(opt, "hc", opts, "cpupool-list", 0) { case 'c': opt_cpus = 1; break; |