mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add validate_certs options to gitlab_user and gitlab_group modules (#21415)
This commit is contained in:
parent
bd036c15e0
commit
7bc7f13856
2 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ def main():
|
||||||
# or with login_token
|
# or with login_token
|
||||||
try:
|
try:
|
||||||
if use_credentials:
|
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)
|
git.login(user=login_user, password=login_password)
|
||||||
else:
|
else:
|
||||||
git = gitlab.Gitlab(server_url, token=login_token, verify_ssl=verify_ssl)
|
git = gitlab.Gitlab(server_url, token=login_token, verify_ssl=verify_ssl)
|
||||||
|
|
|
@ -331,7 +331,7 @@ def main():
|
||||||
# or with login_token
|
# or with login_token
|
||||||
try:
|
try:
|
||||||
if use_credentials:
|
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)
|
git.login(user=login_user, password=login_password)
|
||||||
else:
|
else:
|
||||||
git = gitlab.Gitlab(server_url, token=login_token, verify_ssl=verify_ssl)
|
git = gitlab.Gitlab(server_url, token=login_token, verify_ssl=verify_ssl)
|
||||||
|
|
Loading…
Reference in a new issue