From 658691c0a721e08823968b5bf30039c4b6a73e8e Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 19 Jul 2014 15:20:07 +0200 Subject: [PATCH] only add the rpc postfix if it is missing the fem-scripts requires the rpc-postfix to be present in the given url --- c3t_rpc_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/c3t_rpc_client.py b/c3t_rpc_client.py index 9cf99b5..211aad1 100644 --- a/c3t_rpc_client.py +++ b/c3t_rpc_client.py @@ -32,7 +32,9 @@ import sys # method: method to access ############################ def C3TClient(url, method, group, host, secret, args): - url = url + "rpc" + if 'rpc' != url[-3:]: + url = url + "rpc" + # if host == None: # host = socket.getfqdn()