summaryrefslogtreecommitdiff
path: root/gitlab/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/config.py')
-rw-r--r--gitlab/config.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gitlab/config.py b/gitlab/config.py
index 4d0abb8..3ef2efb 100644
--- a/gitlab/config.py
+++ b/gitlab/config.py
@@ -78,3 +78,13 @@ class GitlabConfigParser(object):
self.timeout = self._config.getint(self.gitlab_id, 'timeout')
except Exception:
pass
+
+ self.http_username = None
+ self.http_password = None
+ try:
+ self.http_username = self._config.get(self.gitlab_id,
+ 'http_username')
+ self.http_password = self._config.get(self.gitlab_id,
+ 'http_password')
+ except Exception:
+ pass