mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Added error message if the user attempts to shutdown Domain-0.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
1 parent
b945dd3342
commit
c25bfd147c
1 file changed
+4
-1
@@ -57,7 +57,10 @@ def shutdown(opts, doms, mode, wait):
|
||||
dom0_name = sxp.child_value(server.xend_domain(0), 'name')
|
||||
for x in [dom0_name, DOM0_ID]:
|
||||
if x in doms:
|
||||
doms.remove(x)
|
||||
if opts.vals.all:
|
||||
doms.remove(x)
|
||||
else:
|
||||
opts.err("Can't specify Domain-0")
|
||||
for d in doms:
|
||||
server.xend_domain_shutdown(d, mode)
|
||||
if wait:
|
||||
|
||||