only add the rpc postfix if it is missing

the fem-scripts requires the rpc-postfix to be present in the given url
This commit is contained in:
MaZderMind 2014-07-19 15:20:07 +02:00
parent bf372323f6
commit 658691c0a7

View file

@ -32,7 +32,9 @@ import sys
# method: method to access # method: method to access
############################ ############################
def C3TClient(url, method, group, host, secret, args): def C3TClient(url, method, group, host, secret, args):
if 'rpc' != url[-3:]:
url = url + "rpc" url = url + "rpc"
# if host == None: # if host == None:
# host = socket.getfqdn() # host = socket.getfqdn()