Skip to contentSkip to conversation

Fix xm shutdown/reboot 000...

PATCH New Murillo Bernardes 1 participant 1 message Dec 28, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix xm shutdown/reboot 000...

Hi,

This is a simple way to fix xm shutdown and xm reboot, so that it do not shutdown dom0 when the parameter has more than one zero.

Signature · 2 lines
Murillo Fernandes Bernardes
IBM Linux Technology Center
tools/python/xen/xm/shutdown.py +1 -1
diff -r 22b408023c8e tools/python/xen/xm/shutdown.py
@@ -93,7 +93,7 @@
 
 def main_dom(opts, args):
     if len(args) < 1: opts.err('Missing domain')
-    dom = args[0]
+    dom = args[0].lstrip("0") or "0"
     mode = shutdown_mode(opts)  
     shutdown(opts, [ dom ], mode, opts.vals.wait)
     

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel