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

arguments".

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Ewan Mellor committed 2006-08-29 22:51:05 +01:00
1 parent 8c6d286668
commit cc8a2f5273
1 file changed
+2 -1
+2 -1
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.