[ovs-dev] [PATCH] Add missing argument in function call.

Rosemarie O'Riorden roriorde at redhat.com
Thu Jun 10 21:12:41 UTC 2021


This syntax error caused the script to crash. With the use of the
correct argument in the function call, it runs and prints what is
expected.

Signed-off-by: Rosemarie O'Riorden <roriorde at redhat.com>
---
 ofproto/ipfix-gen-entities | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ofproto/ipfix-gen-entities b/ofproto/ipfix-gen-entities
index dcecdab21..bd9189132 100755
--- a/ofproto/ipfix-gen-entities
+++ b/ofproto/ipfix-gen-entities
@@ -121,7 +121,7 @@ if __name__ == '__main__':
 
     for key, value in options:
         if key in ['-h', '--help']:
-            usage()
+            usage(sys.argv[0])
         elif key in ['-V', '--version']:
             print('ipfix-gen-entities (Open vSwitch)')
         else:
-- 
2.31.1



More information about the dev mailing list