[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Fix "bogus" check by moving it inside the length check.
# HG changeset patch # User cl349@xxxxxxxxxxxxxxxxxxxx # Node ID 3b3532384aab14ded9f0d886fa422bbc2d5e791c # Parent db61a0f346a831811ca5a820cec77a4c1748e1ac Fix "bogus" check by moving it inside the length check. Signed-off-by: Ryan Harper <ryanh@xxxxxxxxxx> Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> diff -r db61a0f346a8 -r 3b3532384aab tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Mon Aug 29 13:56:53 2005 +++ b/tools/python/xen/xm/main.py Mon Aug 29 13:58:46 2005 @@ -715,9 +715,9 @@ 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: + if args[0] == "bogus": + args.remove("bogus") handle_xend_error(argv[1], args[0], ex) else: print "Unexpected error:", sys.exc_info()[0] _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |