ia64/xen-unstable

changeset 7626:d9d88dd713ba

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>
author kaf24@firebug.cl.cam.ac.uk
date Fri Nov 04 11:05:10 2005 +0100 (2005-11-04)
parents 98515ca23ca3
children 1a5861311b04
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Fri Nov 04 11:03:20 2005 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Fri Nov 04 11:05:10 2005 +0100
     1.3 @@ -466,6 +466,8 @@ def xm_set_vcpus(args):
     1.4      server.xend_domain_set_vcpus(args[0], int(args[1]))
     1.5  
     1.6  def xm_domid(args):
     1.7 +    arg_check(args, 1, "domid")
     1.8 +
     1.9      name = args[0]
    1.10  
    1.11      from xen.xend.XendClient import server
    1.12 @@ -473,6 +475,8 @@ def xm_domid(args):
    1.13      print sxp.child_value(dom, 'domid')
    1.14      
    1.15  def xm_domname(args):
    1.16 +    arg_check(args, 1, "domname")
    1.17 +
    1.18      name = args[0]
    1.19  
    1.20      from xen.xend.XendClient import server