summaryrefslogtreecommitdiff
path: root/ick_controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'ick_controller.py')
-rw-r--r--ick_controller.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/ick_controller.py b/ick_controller.py
index 7299e60..2090b4e 100644
--- a/ick_controller.py
+++ b/ick_controller.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# Copyright (C) 2017-2019 Lars Wirzenius
+# Copyright (C) 2017-2018 Lars Wirzenius
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@@ -47,12 +47,9 @@ default_config = {
'log': [],
'statedir': None,
'artifact-store': None,
- 'muck-url': None,
'auth-url': None,
'notify-url': None,
'apt-server': None,
- 'client-id': None,
- 'client-secret': None,
}
@@ -96,11 +93,10 @@ def main():
ick2.log.log('info', msg_text='Ick2 controller starts', config=config)
- state = ick2.MuckStore(config['muck-url'])
+ state = ick2.FilePersistentState()
+ state.set_directory(config['statedir'])
- getter = ick2.TokenGetter(config['client-id'], config['client-secret'])
-
- api = ick2.ControllerAPI(state, getter)
+ api = ick2.ControllerAPI(state)
api.set_apt_server(config['apt-server'])
api.set_artifact_store_url(config['artifact-store'])
api.set_auth_url(config['auth-url'])