This patch fixes a typo in xm's main.py. This fixes the exception
thrown when doing, for example, "xm domid" on a non-existent domain.
Signed-off-by: Dan Smith <danms@xxxxxxxxxx>
diff -r 522bc50588ed tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py Tue Aug 23 18:27:22 2005
+++ b/tools/python/xen/xm/main.py Tue Aug 23 13:02:58 2005
@@ -666,7 +666,7 @@
sys.exit(1)
except XendError, ex:
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
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms@xxxxxxxxxx
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|