Masaki Kanno
2006-Sep-19 08:36 UTC
[Xen-devel] [PATCH] Fix syntax checking about xm dump-core
Hi, When I specified a wrong option to xm dump-core command, the Traceback occurred. # xm dump-core vm1 -xyz Unexpected error: getopt.GetoptError Please report to xen-devel@lists.xensource.com Traceback (most recent call last): File "/usr/sbin/xm", line 10, in ? main.main(sys.argv) File "//usr/lib/python/xen/xm/main.py", line 1332, in main rc = cmd(args) File "//usr/lib/python/xen/xm/main.py", line 603, in xm_dump_core (options, params) = getopt.gnu_getopt(args, ''LC'', [''live'',''crash'']) File "/usr/lib/python2.3/getopt.py", line 134, in gnu_getopt opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:]) File "/usr/lib/python2.3/getopt.py", line 191, in do_shorts if short_has_arg(opt, shortopts): File "/usr/lib/python2.3/getopt.py", line 207, in short_has_arg raise GetoptError(''option -%s not recognized'' % opt, opt) getopt.GetoptError: option -x not recognized This patch fixes the cause of Traceback. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com> Best regards, Kan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel