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>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-11-04 11:03:20 +01:00
1 parent e5c7a2d299
commit 4fc33b9db4
1 file changed
+2
+2
View File
@@ -460,6 +460,8 @@ def xm_mem_set(args):
server.xend_domain_mem_target_set(dom, mem_target)
def xm_set_vcpus(args):
arg_check(args, 2, "set-vcpus")
from xen.xend.XendClient import server
server.xend_domain_set_vcpus(args[0], int(args[1]))
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.