mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -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
|
@ -123,7 +123,7 @@ class RpmKey:
|
|||
def fetch_key(self, url, maxbytes=MAXBYTES):
|
||||
"""Downloads a key from url, returns a valid path to a gpg key"""
|
||||
try:
|
||||
rsp, info = fetch_url(self.module, url, validate_certs=self.module.params['validate_certs'])
|
||||
rsp, info = fetch_url(self.module, url)
|
||||
key = rsp.read(maxbytes)
|
||||
if not is_pubkey(key):
|
||||
self.module.fail_json(msg="Not a public key: %s" % url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue