Hi Gary,

ACK from me.

Best Regards,
ThuanTr

-----Original Message-----
From: Gary Lee <gary....@dektech.com.au> 
Sent: Wednesday, November 13, 2019 1:19 PM
To: minh.c...@dektech.com.au; thuan.t...@dektech.com.au
Cc: opensaf-devel@lists.sourceforge.net; Gary Lee <gary....@dektech.com.au>
Subject: [PATCH 1/1] osaf: return a help message if no parameter is specified 
[#3118]

---
 src/osaf/consensus/plugins/tcp/tcp.plugin | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/osaf/consensus/plugins/tcp/tcp.plugin 
b/src/osaf/consensus/plugins/tcp/tcp.plugin
index 1b5ddf5..0be20fc 100755
--- a/src/osaf/consensus/plugins/tcp/tcp.plugin
+++ b/src/osaf/consensus/plugins/tcp/tcp.plugin
@@ -149,7 +149,12 @@ class ArbitratorPlugin(object):
         params = []
         if args:
             params.append(args)
-        return getattr(self, command)(*params)
+        if command:
+            return getattr(self, command)(*params)
+        else:
+            ret = {'code': 0,
+                   'output': parser.format_help()}
+            return ret
 
     def get_node_name(self):
         node_file = open(self.node_name_file)
-- 
2.7.4




_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to