xl: fix `xl cpupool-list' behavior in case no pool name is provided
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 11 Sep 2013 11:06:22 +0000 (13:06 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 13 Sep 2013 11:50:39 +0000 (12:50 +0100)
commit3998afdbf99959582dcd9f9f4df5a6fe7ce4ded8
treebb7d3feaf6866a984aeee7e629960740081bfcd8
parent11a63a1660453269ddd1893c15d0a98133b33ca7
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>
tools/libxl/xl_cmdimpl.c