ia64/xen-unstable

changeset 11338:b4e9f12df619

Improve xm migrate error message by printing usage instead of "Invalid
arguments".

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Ewan Mellor <ewan@xensource.com>
date Tue Aug 29 22:51:05 2006 +0100 (2006-08-29)
parents 7bfd8efb4fa7
children 051dc0911547
files tools/python/xen/xm/migrate.py
line diff
     1.1 --- a/tools/python/xen/xm/migrate.py	Tue Aug 29 14:34:57 2006 -0700
     1.2 +++ b/tools/python/xen/xm/migrate.py	Tue Aug 29 22:51:05 2006 +0100
     1.3 @@ -57,7 +57,8 @@ def main(argv):
     1.4          opts.usage()
     1.5          return
     1.6      if len(args) != 2:
     1.7 -        opts.err('Invalid arguments: ' + str(args))
     1.8 +        opts.usage()
     1.9 +        sys.exit(1)
    1.10      dom = args[0]
    1.11      dst = args[1]
    1.12      server.xend.domain.migrate(dom, dst, opts.vals.live, opts.vals.resource, opts.vals.port)