diff -r 22b408023c8e tools/python/xen/xm/shutdown.py --- a/tools/python/xen/xm/shutdown.py Tue Dec 27 18:55:48 2005 +++ b/tools/python/xen/xm/shutdown.py Wed Dec 28 11:05:10 2005 @@ -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)