The test-jsonrpc.py script didn't understand the "-h" option and
threw an exception when "--help" was supplied.
---
tests/test-jsonrpc.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test-jsonrpc.py b/tests/test-jsonrpc.py
index 781f1f4..9da3bd2 100644
--- a/tests/test-jsonrpc.py
+++ b/tests/test-jsonrpc.py
@@ -166,7 +166,7 @@ def main(argv):
sys.exit(1)
for key, value in options:
- if key in ['h', '--help']:
+ if key in ['-h', '--help']:
usage()
elif not ovs.daemon.parse_opt(key, value):
sys.stderr.write("%s: unhandled option %s\n"
@@ -212,7 +212,7 @@ usage: %s [OPTIONS] COMMAND [ARG...]
request REMOTE METHOD PARAMS send request, print reply
notify REMOTE METHOD PARAMS send notification and exit
""" % (ovs.util.PROGRAM_NAME, ovs.util.PROGRAM_NAME))
- ovs.stream.usage("JSON-RPC", True, True, True)
+ ovs.stream.usage("JSON-RPC", True, True)
ovs.daemon.usage()
sys.stdout.write("""
Other options:
--
1.7.6.1
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev