summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2013-08-26 09:53:09 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2013-08-26 09:53:09 +0200
commit147a569598e0151d69a662ee7b60ce2870f49e9e (patch)
tree7255c0dc36dd9e795330fe4d54bc6ca9a9b0215d /gitlab
parentbb7ba7ae49a6970b156e2c32b01c777f4518f76b (diff)
downloadgitlab-147a569598e0151d69a662ee7b60ce2870f49e9e.tar.gz
cli: support ssl_verify config option
Diffstat (limited to 'gitlab')
-rwxr-xr-xgitlab12
1 files changed, 11 insertions, 1 deletions
diff --git a/gitlab b/gitlab
index 7365003..370cef1 100755
--- a/gitlab
+++ b/gitlab
@@ -126,7 +126,7 @@ def usage():
def do_auth():
try:
- gl = gitlab.Gitlab(gitlab_url, private_token=gitlab_token)
+ gl = gitlab.Gitlab(gitlab_url, private_token=gitlab_token, ssl_verify=ssl_verify)
gl.auth()
except:
die("Could not connect to GitLab (%s)" % gitlab_url)
@@ -204,6 +204,7 @@ def do_update(cls, d):
return o
+ssl_verify = True
gitlab_id = None
verbose = False
@@ -273,6 +274,15 @@ except:
die("Impossible to get gitlab informations from configuration (%s)" % gitlab_id)
try:
+ ssl_verify = config.getboolean('global', 'ssl_verify')
+except:
+ pass
+try:
+ ssl_verify = config.getboolean(gitlab_id, 'ssl_verify')
+except:
+ pass
+
+try:
what = args.pop(0)
action = args.pop(0)
except: