summaryrefslogtreecommitdiffstats
path: root/DominoClient.py
diff options
context:
space:
mode:
authorUlas Kozat <ulas.kozat@gmail.com>2016-06-13 11:04:35 -0700
committerUlas Kozat <ulas.kozat@gmail.com>2016-06-13 11:04:35 -0700
commit64eec6741cea5e4b4dd9fe859a36b46b8e353889 (patch)
tree8e735438a3fafeb0e8f73063a1a17e315908b463 /DominoClient.py
parent069277d5ac5cbd1b8e84bb15ed766825aa8059d3 (diff)
Added cliport support for domino-cli.py to be able to run multiple domino clients in non-interactive mode
Change-Id: I38dd5061d60739ba2e37c50e8887abe69fa0b137 Signed-off-by: Ulas Kozat <ulas.kozat@gmail.com>
Diffstat (limited to 'DominoClient.py')
-rwxr-xr-xDominoClient.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/DominoClient.py b/DominoClient.py
index a31e074..19aaa65 100755
--- a/DominoClient.py
+++ b/DominoClient.py
@@ -142,6 +142,10 @@ class DominoClientCLIService(threading.Thread):
self.interactive = interactive
def process_input(self, args):
+ if len(args) == 0:
+ print 'Empty API body'
+ return
+
try:
if args[0] == 'heartbeat':
self.dominoclient.heartbeat()
@@ -408,11 +412,11 @@ def main(argv):
try:
opts, args = getopt.getopt(argv,"hc:p:i:l:",["conf=","port=","ipaddr=","log=","iac=","cliport="])
except getopt.GetoptError:
- print 'DominoClient.py -c/--conf <configfile> -p/--port <socketport> -i/--ipaddr <IPaddr> -l/--log <loglevel> --iac=true/false'
+ print 'DominoClient.py -c/--conf <configfile> -p/--port <socketport> -i/--ipaddr <IPaddr> -l/--log <loglevel> --iac=true/false --cliport <cliport>'
sys.exit(2)
for opt, arg in opts:
if opt == '-h':
- print 'DominoClient.py -c/--conf <configfile> -p/--port <socketport> -i/--ipaddr <IPaddr> -l/--log <loglevel> --iac=true/false'
+ print 'DominoClient.py -c/--conf <configfile> -p/--port <socketport> -i/--ipaddr <IPaddr> -l/--log <loglevel> --iac=true/false --cliport <cliport>'
sys.exit()
elif opt in ("-c", "--conf"):
configfile = arg