---
 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