ia64/xen-unstable
changeset 8361:52916bfbfa35
Added error message if the user attempts to shutdown Domain-0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author | emellor@leeni.uk.xensource.com |
---|---|
date | Wed Dec 14 12:03:40 2005 +0000 (2005-12-14) |
parents | 30f54abf9592 |
children | 050333773f09 |
files | tools/python/xen/xm/shutdown.py |
line diff
1.1 --- a/tools/python/xen/xm/shutdown.py Wed Dec 14 11:59:19 2005 +0000 1.2 +++ b/tools/python/xen/xm/shutdown.py Wed Dec 14 12:03:40 2005 +0000 1.3 @@ -57,7 +57,10 @@ def shutdown(opts, doms, mode, wait): 1.4 dom0_name = sxp.child_value(server.xend_domain(0), 'name') 1.5 for x in [dom0_name, DOM0_ID]: 1.6 if x in doms: 1.7 - doms.remove(x) 1.8 + if opts.vals.all: 1.9 + doms.remove(x) 1.10 + else: 1.11 + opts.err("Can't specify Domain-0") 1.12 for d in doms: 1.13 server.xend_domain_shutdown(d, mode) 1.14 if wait: