X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fdummy%2Fdummy_testbed_api_client.py;h=57a048254d465bf9720c7b88305d974e817383ba;hb=06768bd605e5d47fadfc90a35c74e30f267226a5;hp=4b3989efe943de915df4f35351273cf246594af1;hpb=fad16c7d54b658b37a9b42fbee47b0d4f51cb8ec;p=sfa.git diff --git a/sfa/dummy/dummy_testbed_api_client.py b/sfa/dummy/dummy_testbed_api_client.py index 4b3989ef..57a04825 100644 --- a/sfa/dummy/dummy_testbed_api_client.py +++ b/sfa/dummy/dummy_testbed_api_client.py @@ -1,11 +1,11 @@ from __future__ import print_function -import xmlrpclib from datetime import datetime import time +from sfa.util.py23 import xmlrpc_client dummy_url = "http://localhost:8080" -dummy_api = xmlrpclib.ServerProxy(dummy_url) +dummy_api = xmlrpc_client.ServerProxy(dummy_url) # Add a user: my_user_id = dummy_api.AddUser({'email': 'john.doe@test.net', 'user_name': 'john.doe', 'keys': ['copy here your ssh-rsa public key']})