ia64/xen-unstable

changeset 6478:3b3532384aab

Fix "bogus" check by moving it inside the length check.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Mon Aug 29 13:58:46 2005 +0000 (2005-08-29)
parents db61a0f346a8
children 936be0ae823f
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Mon Aug 29 13:56:53 2005 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Mon Aug 29 13:58:46 2005 +0000
     1.3 @@ -715,9 +715,9 @@ def main(argv=sys.argv):
     1.4              err("Most commands need root access.  Please try again as root")
     1.5              sys.exit(1)
     1.6          except XendError, ex:
     1.7 -            if args[0] == "bogus":
     1.8 -                args.remove("bogus")
     1.9              if len(args) > 0:
    1.10 +                if args[0] == "bogus":
    1.11 +                    args.remove("bogus")
    1.12                  handle_xend_error(argv[1], args[0], ex)
    1.13              else:
    1.14                  print "Unexpected error:", sys.exc_info()[0]