|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Fix the exception thrown when doing, for example, "xm do
# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID fd77dd32c8a4e4e222ccee984b004b20be3b839c
# Parent e56b8040bc904c9618e75518bfe96776b1f71a3e
Fix the exception thrown when doing, for example, "xm domid" on a non-existent
domain.
Signed-off-by: Dan Smith <danms@xxxxxxxxxx>
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
diff -r e56b8040bc90 -r fd77dd32c8a4 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py Thu Aug 25 09:50:30 2005
+++ b/tools/python/xen/xm/main.py Thu Aug 25 09:55:12 2005
@@ -665,8 +665,10 @@
err("Most commands need root access. Please try again as root")
sys.exit(1)
except XendError, ex:
+ if args[0] == "bogus":
+ args.remove("bogus")
if len(args) > 0:
- handle_xend_error(argv[1], args[1], ex)
+ handle_xend_error(argv[1], args[0], ex)
else:
print "Unexpected error:", sys.exc_info()[0]
print
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
|
|
|
|