mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Remove validate_certs parameter from fetch_url calls
This commit is contained in:
parent
a9017af2bb
commit
d8a81c488e
6 changed files with 10 additions and 11 deletions
|
@ -75,7 +75,7 @@ def list(module, hookurl, oauthkey, repo, user):
|
|||
headers = {
|
||||
'Authorization': 'Basic %s' % auth,
|
||||
}
|
||||
response, info = fetch_url(module, url, headers=headers, validate_certs=module.params['validate_certs'])
|
||||
response, info = fetch_url(module, url, headers=headers)
|
||||
if info['status'] != 200:
|
||||
return False, ''
|
||||
else:
|
||||
|
@ -120,7 +120,7 @@ def create(module, hookurl, oauthkey, repo, user):
|
|||
headers = {
|
||||
'Authorization': 'Basic %s' % auth,
|
||||
}
|
||||
response, info = fetch_url(module, url, data=data, headers=headers, validate_certs=module.params['validate_certs'])
|
||||
response, info = fetch_url(module, url, data=data, headers=headers)
|
||||
if info['status'] != 200:
|
||||
return 0, '[]'
|
||||
else:
|
||||
|
@ -132,7 +132,7 @@ def delete(module, hookurl, oauthkey, repo, user, hookid):
|
|||
headers = {
|
||||
'Authorization': 'Basic %s' % auth,
|
||||
}
|
||||
response, info = fetch_url(module, url, data=data, headers=headers, method='DELETE', validate_certs=module.params['validate_certs'])
|
||||
response, info = fetch_url(module, url, data=data, headers=headers, method='DELETE')
|
||||
return response.read()
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue