mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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:
1 parent
4fc33b9db4
commit
06c12463fc
1 file changed
+4
@@ -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
|
||||
|
||||