[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] This is another patch that adds an arg_check() to domid and domname so



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID d9d88dd713ba8f95c2fe717be36c64c31605913b
# Parent  98515ca23ca37823e1424835b56ab318cca3c9ad
This is another patch that adds an arg_check() to domid and domname so
that we don't dump stack if a user runs either without an argument.

Signed-off-by: Dan Smith <danms@xxxxxxxxxx>

diff -r 98515ca23ca3 -r d9d88dd713ba tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Fri Nov  4 10:03:20 2005
+++ b/tools/python/xen/xm/main.py       Fri Nov  4 10:05:10 2005
@@ -466,6 +466,8 @@
     server.xend_domain_set_vcpus(args[0], int(args[1]))
 
 def xm_domid(args):
+    arg_check(args, 1, "domid")
+
     name = args[0]
 
     from xen.xend.XendClient import server
@@ -473,6 +475,8 @@
     print sxp.child_value(dom, 'domid')
     
 def xm_domname(args):
+    arg_check(args, 1, "domname")
+
     name = args[0]
 
     from xen.xend.XendClient import server

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.