diff options
author | Christoph Rahn <crahn@rosen-group.com> | 2019-09-09 10:34:20 +0200 |
---|---|---|
committer | Christoph Rahn <crahn@rosen-group.com> | 2019-09-09 10:34:20 +0200 |
commit | a144f4de932d1d8925c3f76579ddd0f3979b9b3d (patch) | |
tree | e6f60dd5fc364c00d11e99ed6406c930d4229401 | |
parent | 9bc5f539618c2f469b3e9a96195a347ad0c347a8 (diff) |
lava-slave: Use python3 xmlrpc
-rw-r--r-- | lava-slave/scripts/setdispatcherip.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lava-slave/scripts/setdispatcherip.py b/lava-slave/scripts/setdispatcherip.py index a058cba..20c2743 100644 --- a/lava-slave/scripts/setdispatcherip.py +++ b/lava-slave/scripts/setdispatcherip.py @@ -1,11 +1,11 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 -import xmlrpclib +import xmlrpc.client import sys if len(sys.argv) < 4: print("ERROR: Usage: %s URI workername dispatcherIP" % sys.argv[0]) sys.exit(1) -server = xmlrpclib.ServerProxy("%s" % sys.argv[1]) +server = xmlrpc.client.ServerProxy("%s" % sys.argv[1]) server.scheduler.workers.set_config("%s" % sys.argv[2], "dispatcher_ip: %s" % sys.argv[3]) |