summaryrefslogtreecommitdiff
path: root/worker_manager
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-01-13 10:36:07 +0200
committerLars Wirzenius <liw@liw.fi>2018-01-14 22:23:40 +0200
commitf6ad1aa649c7bf61938bef6b9be0fdf5a2fc5b52 (patch)
tree0df034c3b14930aa398ddaf6ce358be4339ce8f9 /worker_manager
parent9a7ca01d585b5f94655864af6608a3b95dca4f3b (diff)
downloadick2-f6ad1aa649c7bf61938bef6b9be0fdf5a2fc5b52.tar.gz
Fix: rename ContainerAPI to ControllerAPI
Diffstat (limited to 'worker_manager')
-rwxr-xr-xworker_manager4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker_manager b/worker_manager
index 4fb04ed..04272a4 100755
--- a/worker_manager
+++ b/worker_manager
@@ -88,7 +88,7 @@ class WorkerManager(cliapp.Application):
url = self.settings['controller']
tg = TokenGenerator()
tg.set_key(self.settings['token-key'])
- api = ContainerAPI(name, url, tg)
+ api = ControllerAPI(name, url, tg)
worker = Worker(name, api, self.settings['workspace'])
logging.info('Worker manager %s starts, controller is %s', name, url)
@@ -106,7 +106,7 @@ class WorkerManager(cliapp.Application):
time.sleep(secs)
-class ContainerAPI:
+class ControllerAPI:
def __init__(self, name, url, token_generator):
self._name = name