1
0
Fork 0
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:
Aliaksandr Kharkevich 2017-02-20 12:43:36 +03:00 committed by René Moser
parent bd036c15e0
commit 7bc7f13856
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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)