Skip to content

Commit

Permalink
Update gitlab.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xrow authored Jan 6, 2025
1 parent 007302d commit 4f098b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def gitlab_authentication(module, min_version=None):
gitlab_oauth_token = resp_data["access_token"]

gitlab_instance = gitlab.Gitlab(url=gitlab_url, ssl_verify=verify, private_token=gitlab_token,
oauth_token=gitlab_oauth_token, job_token=gitlab_job_token, api_version=4)
oauth_token=gitlab_oauth_token, job_token=gitlab_job_token, api_version=4, keep_base_url=True)
gitlab_instance.auth()
except (gitlab.exceptions.GitlabAuthenticationError, gitlab.exceptions.GitlabGetError) as e:
module.fail_json(msg="Failed to connect to GitLab server: %s" % to_native(e))
Expand Down

0 comments on commit 4f098b1

Please sign in to comment.