]> git.proxmox.com Git - ovs.git/commitdiff
ovs-tcpundump: exit when getting version
authorAaron Conole <aconole@redhat.com>
Tue, 22 Oct 2019 14:55:58 +0000 (10:55 -0400)
committerBen Pfaff <blp@ovn.org>
Wed, 23 Oct 2019 17:22:11 +0000 (10:22 -0700)
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>
Signed-off-by: Ben Pfaff <blp@ovn.org>
utilities/ovs-tcpundump.in

index b20730ec96be761d464ff69089eea73e70a25ff1..1ec4f2acc364bc6d0200601e151de3623dff5ed0 100755 (executable)
@@ -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)