mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Add validate_certs options to gitlab_user and gitlab_group modules (#21415)
This commit is contained in:
committed by
René Moser
parent
bd036c15e0
commit
7bc7f13856
@@ -191,7 +191,7 @@ def main():
|
||||
# or with login_token
|
||||
try:
|
||||
if use_credentials:
|
||||
git = gitlab.Gitlab(host=server_url)
|
||||
git = gitlab.Gitlab(host=server_url, verify_ssl=verify_ssl)
|
||||
git.login(user=login_user, password=login_password)
|
||||
else:
|
||||
git = gitlab.Gitlab(server_url, token=login_token, verify_ssl=verify_ssl)
|
||||
|
||||
@@ -331,7 +331,7 @@ def main():
|
||||
# or with login_token
|
||||
try:
|
||||
if use_credentials:
|
||||
git = gitlab.Gitlab(host=server_url)
|
||||
git = gitlab.Gitlab(host=server_url, verify_ssl=verify_ssl)
|
||||
git.login(user=login_user, password=login_password)
|
||||
else:
|
||||
git = gitlab.Gitlab(server_url, token=login_token, verify_ssl=verify_ssl)
|
||||
|
||||
Reference in New Issue
Block a user