[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Improve xm migrate error message by printing usage instead of "Invalid
# HG changeset patch # User Ewan Mellor <ewan@xxxxxxxxxxxxx> # Node ID b4e9f12df619ee06587ab53971e5057ab710f851 # Parent 7bfd8efb4fa7d2e2f90bd21af3407cd2fd28744a Improve xm migrate error message by printing usage instead of "Invalid arguments". Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx> --- tools/python/xen/xm/migrate.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r 7bfd8efb4fa7 -r b4e9f12df619 tools/python/xen/xm/migrate.py --- a/tools/python/xen/xm/migrate.py Tue Aug 29 14:34:57 2006 -0700 +++ b/tools/python/xen/xm/migrate.py Tue Aug 29 22:51:05 2006 +0100 @@ -57,7 +57,8 @@ def main(argv): opts.usage() return if len(args) != 2: - opts.err('Invalid arguments: ' + str(args)) + opts.usage() + sys.exit(1) dom = args[0] dst = args[1] server.xend.domain.migrate(dom, dst, opts.vals.live, opts.vals.resource, opts.vals.port) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |