summaryrefslogtreecommitdiff
path: root/lorrycontroller
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller')
-rw-r--r--lorrycontroller/gitlab.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lorrycontroller/gitlab.py b/lorrycontroller/gitlab.py
index 58bf67f..e77e4bb 100644
--- a/lorrycontroller/gitlab.py
+++ b/lorrycontroller/gitlab.py
@@ -130,7 +130,10 @@ class GitlabUpstream(hosts.UpstreamHost):
def __init__(self, host_info):
self._protocol = host_info['protocol']
- url = 'http://%(host)s/' % host_info
+ if self._protocol == 'ssh':
+ url = 'https://%(host)s/' % host_info
+ else:
+ url = '%(protocol)s://%(host)s/' % host_info
self.gl = _init_gitlab(url, host_info['type_params']['private-token'])
def list_repos(self):