direct-io.hg
changeset 7612:98515ca23ca3
This patch adds an arg_check into the set_vcpus code in xm, so that we
don't output a stack trace if <2 arguments are passed.
Signed-off-by: Dan Smith <danms@us.ibm.com>
don't output a stack trace if <2 arguments are passed.
Signed-off-by: Dan Smith <danms@us.ibm.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Fri Nov 04 11:03:20 2005 +0100 (2005-11-04) |
parents | 289b73a5ace7 |
children | d9d88dd713ba |
files | tools/python/xen/xm/main.py |
line diff
1.1 --- a/tools/python/xen/xm/main.py Thu Nov 03 09:58:45 2005 +0100 1.2 +++ b/tools/python/xen/xm/main.py Fri Nov 04 11:03:20 2005 +0100 1.3 @@ -460,6 +460,8 @@ def xm_mem_set(args): 1.4 server.xend_domain_mem_target_set(dom, mem_target) 1.5 1.6 def xm_set_vcpus(args): 1.7 + arg_check(args, 2, "set-vcpus") 1.8 + 1.9 from xen.xend.XendClient import server 1.10 server.xend_domain_set_vcpus(args[0], int(args[1])) 1.11