diff options
| author | Gauvain Pocentek <gauvain@pocentek.net> | 2013-08-26 09:53:09 +0200 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain@pocentek.net> | 2013-08-26 09:53:09 +0200 |
| commit | 147a569598e0151d69a662ee7b60ce2870f49e9e (patch) | |
| tree | 7255c0dc36dd9e795330fe4d54bc6ca9a9b0215d /gitlab | |
| parent | bb7ba7ae49a6970b156e2c32b01c777f4518f76b (diff) | |
| download | gitlab-147a569598e0151d69a662ee7b60ce2870f49e9e.tar.gz | |
cli: support ssl_verify config option
Diffstat (limited to 'gitlab')
| -rwxr-xr-x | gitlab | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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: |
