diff options
author | Max Wittig <max.wittig@siemens.com> | 2019-09-06 15:07:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-06 15:07:31 +0200 |
commit | 8474829a3fe40aca8f5d4c1c627908f0830a8f59 (patch) | |
tree | 8f28490690f673a6e4a2efea77221dd503a2b20d /gitlab/cli.py | |
parent | b7f33429c75ed2f464ebd9b4d3c56d3479df3faa (diff) | |
parent | cef3aa51a6928338c6755c3e6de78605fae8e59e (diff) | |
download | gitlab-8474829a3fe40aca8f5d4c1c627908f0830a8f59.tar.gz |
Merge pull request #876 from sathieu/job_token
Add support for job token
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r-- | gitlab/cli.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py index 01d8851..0ff2f22 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -202,7 +202,7 @@ def main(): try: gl = gitlab.Gitlab.from_config(gitlab_id, config_files) - if gl.private_token or gl.oauth_token: + if gl.private_token or gl.oauth_token or gl.job_token: gl.auth() except Exception as e: die(str(e)) |