ia64/xen-unstable
changeset 7417:1d88f303c39c
Put back the arg_check calls removed recently -- they aren't as useless as I
thought they were.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
thought they were.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | emellor@leeni.uk.xensource.com |
---|---|
date | Mon Oct 17 20:34:10 2005 +0100 (2005-10-17) |
parents | aa5c62270da7 |
children | 2b95dde72853 |
files | tools/python/xen/xm/main.py |
line diff
1.1 --- a/tools/python/xen/xm/main.py Mon Oct 17 16:33:27 2005 +0100 1.2 +++ b/tools/python/xen/xm/main.py Mon Oct 17 20:34:10 2005 +0100 1.3 @@ -370,6 +370,8 @@ def cpu_make_map(cpulist): 1.4 return cpumap 1.5 1.6 def xm_vcpu_pin(args): 1.7 + arg_check(args, 3, "vcpu-pin") 1.8 + 1.9 dom = args[0] 1.10 vcpu = int(args[1]) 1.11 cpumap = cpu_make_map(args[2]) 1.12 @@ -378,6 +380,8 @@ def xm_vcpu_pin(args): 1.13 server.xend_domain_pincpu(dom, vcpu, cpumap) 1.14 1.15 def xm_mem_max(args): 1.16 + arg_check(args, 2, "mem-max") 1.17 + 1.18 dom = args[0] 1.19 mem = int_unit(args[1], 'm') 1.20 1.21 @@ -385,6 +389,8 @@ def xm_mem_max(args): 1.22 server.xend_domain_maxmem_set(dom, mem) 1.23 1.24 def xm_mem_set(args): 1.25 + arg_check(args, 2, "mem-set") 1.26 + 1.27 dom = args[0] 1.28 mem_target = int_unit(args[1], 'm') 1.29