summaryrefslogtreecommitdiff
path: root/lorrycontroller/readconf.py
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller/readconf.py')
-rw-r--r--lorrycontroller/readconf.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/lorrycontroller/readconf.py b/lorrycontroller/readconf.py
index 09a9f52..b95b9de 100644
--- a/lorrycontroller/readconf.py
+++ b/lorrycontroller/readconf.py
@@ -290,22 +290,23 @@ class ReadConfiguration(lorrycontroller.LorryControllerRoute):
username = auth.get('username')
password = auth.get('password')
- gitlab_token = None
+ type_params = {}
if section['type'] == 'gitlab':
- gitlab_token = section['private-token']
+ type_params['private-token'] = section['private-token']
statedb.add_host(
host=section.get('host') or section['trovehost'],
protocol=section['protocol'],
username=username,
password=password,
+ host_type=section['type'],
+ type_params=type_params,
lorry_interval=section['interval'],
lorry_timeout=section.get(
'lorry-timeout', self.DEFAULT_LORRY_TIMEOUT),
ls_interval=section['ls-interval'],
prefixmap=json.dumps(section['prefixmap']),
- ignore=json.dumps(section.get('ignore', [])),
- gitlab_token=gitlab_token)
+ ignore=json.dumps(section.get('ignore', [])))
class ValidationError(Exception):