Sanity fix to conditional

pull/83336/head
Pablo Casillas 6 months ago committed by GitHub
parent 8394fac0a7
commit 714c3093ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -151,7 +151,7 @@ class RpmKey(object):
def fetch_key(self, url):
"""Downloads a key from url, returns a valid path to a gpg key"""
rsp, info = fetch_url(self.module, url)
if info['status'] != 200 or ( url.startswith("ftp://") and info['status'] is None):
if info['status'] != 200 or (url.startswith("ftp://") and info['status'] is None):
self.module.fail_json(msg="failed to fetch key at %s , error was: %s" % (url, info['msg']))
key = rsp.read()

Loading…
Cancel
Save