direct-io.hg

changeset 6393:fd77dd32c8a4

Fix the exception thrown when doing, for example, "xm domid" on a non-existent domain.
Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Aug 25 09:55:12 2005 +0000 (2005-08-25)
parents e56b8040bc90
children e26f574eac9a e24fd7012ffb
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Thu Aug 25 09:50:30 2005 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Thu Aug 25 09:55:12 2005 +0000
     1.3 @@ -665,8 +665,10 @@ 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 -                handle_xend_error(argv[1], args[1], ex)
    1.11 +                handle_xend_error(argv[1], args[0], ex)
    1.12              else:
    1.13                  print "Unexpected error:", sys.exc_info()[0]
    1.14                  print