mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-08 11:43:10 +00:00
This commit is contained in:
@@ -225,6 +225,8 @@ def fetch_rpm_from_url(spec, module=None):
|
||||
package = os.path.join(tempdir, str(spec.rsplit('/', 1)[1]))
|
||||
try:
|
||||
rsp, info = fetch_url(module, spec)
|
||||
if not rsp:
|
||||
module.fail_json(msg="Failure downloading %s, %s" % (spec, info['msg']))
|
||||
f = open(package, 'w')
|
||||
data = rsp.read(BUFSIZE)
|
||||
while data:
|
||||
|
||||
Reference in New Issue
Block a user