ia64/xen-unstable

changeset 6386:a3822cb3b2b3

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 Wed Aug 24 08:28:50 2005 +0000 (2005-08-24)
parents f34e732ed4bf
children ac57c81692b2
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Tue Aug 23 19:58:59 2005 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Wed Aug 24 08:28:50 2005 +0000
     1.3 @@ -666,7 +666,7 @@ def main(argv=sys.argv):
     1.4              sys.exit(1)
     1.5          except XendError, ex:
     1.6              if len(args) > 0:
     1.7 -                handle_xend_error(argv[1], args[1], ex)
     1.8 +                handle_xend_error(argv[1], args[0], ex)
     1.9              else:
    1.10                  print "Unexpected error:", sys.exc_info()[0]
    1.11                  print