From 4b121ea2ad47d4f8cebaa9bf4d57756a63cc03d1 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Thu, 20 Sep 2018 16:32:21 -0400 Subject: [PATCH] Remove temp checksum file (#45871) --- lib/ansible/modules/net_tools/basics/get_url.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/net_tools/basics/get_url.py b/lib/ansible/modules/net_tools/basics/get_url.py index 73405222a0d..bc7bf2be703 100644 --- a/lib/ansible/modules/net_tools/basics/get_url.py +++ b/lib/ansible/modules/net_tools/basics/get_url.py @@ -463,6 +463,7 @@ def main(): checksum_tmpsrc, checksum_info = url_get(module, checksum_url, dest, use_proxy, last_mod_time, force, timeout, headers, tmp_dest) with open(checksum_tmpsrc) as f: lines = [line.rstrip('\n') for line in f] + os.remove(checksum_tmpsrc) lines = dict(s.split(None, 1) for s in lines) filename = url_filename(url)