diff mbox series

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

Message ID 20210610211241.23004-1-roriorde@redhat.com
State Accepted
Headers show
Series [ovs-dev] Add missing argument in function call. | expand

Commit Message

Rosemarie O'Riorden June 10, 2021, 9:12 p.m. UTC
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@redhat.com>
---
 ofproto/ipfix-gen-entities | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ben Pfaff June 10, 2021, 9:20 p.m. UTC | #1
On Thu, Jun 10, 2021 at 05:12:41PM -0400, Rosemarie O'Riorden wrote:
> 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@redhat.com>

Thanks, applied to master.
diff mbox series

Patch

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: