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:
emellor@leeni.uk.xensource.com committed 2005-12-14 12:03:40 +00:00
1 parent b945dd3342
commit c25bfd147c
1 file changed
+4 -1
+4 -1
View File
@@ -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:
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.