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@us.ibm.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-11-04 11:05:10 +01:00
1 parent 4fc33b9db4
commit 06c12463fc
1 file changed
+4
+4
View File
@@ -466,6 +466,8 @@ def xm_set_vcpus(args):
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 @@ def xm_domid(args):
print sxp.child_value(dom, 'domid')
def xm_domname(args):
arg_check(args, 1, "domname")
name = args[0]
from xen.xend.XendClient import server
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.