Fix xm vcpu-pin command for keyword 'all'.

The keyword 'all' was supported as the 2nd argument of xm vcpu-pin
command since changeset 11619.  However, we cannot use the keyword
'all' since changeset 14481.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-06-12 11:29:27 +01:00
1 parent ea511d357e
commit e8299fcc5b
1 file changed
+2 -2
+2 -2
View File
@@ -140,7 +140,7 @@ SUBCOMMAND_HELP = {
'Send a trigger to a domain.'),
'vcpu-list' : ('[<Domain>]',
'List the VCPUs for a domain or all domains.'),
'vcpu-pin' : ('<Domain> <VCPU> <CPUs|all>',
'vcpu-pin' : ('<Domain> <VCPU|all> <CPUs|all>',
'Set which CPUs a VCPU can use.'),
'vcpu-set' : ('<Domain> <vCPUs>',
'Set the number of active VCPUs for allowed for the'
@@ -1330,7 +1330,7 @@ def xm_vcpu_pin(args):
return cpus
dom = args[0]
vcpu = int(args[1])
vcpu = args[1]
if args[2] == 'all':
cpumap = cpu_make_map('0-63')
else:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.