[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] This patch adds an arg_check into the set_vcpus code in xm, so that we
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 98515ca23ca37823e1424835b56ab318cca3c9ad # Parent 289b73a5ace754043db86fa19585e770a0877a28 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@xxxxxxxxxx> diff -r 289b73a5ace7 -r 98515ca23ca3 tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Thu Nov 3 08:58:45 2005 +++ b/tools/python/xen/xm/main.py Fri Nov 4 10:03:20 2005 @@ -460,6 +460,8 @@ 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])) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |