Message ID | 20191022145559.11343-1-aconole@redhat.com |
---|---|
State | Accepted |
Commit | c691cffb03ba3a7595f364c2766fdd2ace8c3842 |
Headers | show |
Series | [ovs-dev,1/2] ovs-tcpundump: exit when getting version | expand |
On Tue, Oct 22, 2019 at 10:55:58AM -0400, Aaron Conole wrote: > Running 'ovs-tcpundump -V' will cause ovs-tcpundump to start processing on > stdin. Instead, print the version and exit. > > Signed-off-by: Aaron Conole <aconole@redhat.com> Thanks, I applied both of these to master.
diff --git a/utilities/ovs-tcpundump.in b/utilities/ovs-tcpundump.in index b20730ec9..1ec4f2acc 100755 --- a/utilities/ovs-tcpundump.in +++ b/utilities/ovs-tcpundump.in @@ -47,6 +47,7 @@ if __name__ == "__main__": usage() elif key in ['-V', '--version']: print("ovs-tcpundump (Open vSwitch) @VERSION@") + sys.exit(0) else: sys.exit(0)
Running 'ovs-tcpundump -V' will cause ovs-tcpundump to start processing on stdin. Instead, print the version and exit. Signed-off-by: Aaron Conole <aconole@redhat.com> --- utilities/ovs-tcpundump.in | 1 + 1 file changed, 1 insertion(+)