From bcd189509e0ce627677e30e4c2756633c1e33de2 Mon Sep 17 00:00:00 2001 From: Eric Citaire Date: Fri, 8 Dec 2017 02:25:02 +0100 Subject: [PATCH] Fixes #33521, remove temp file. (#33522) --- lib/ansible/modules/net_tools/basics/get_url.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/net_tools/basics/get_url.py b/lib/ansible/modules/net_tools/basics/get_url.py index 6b387635e0..d589f238d8 100644 --- a/lib/ansible/modules/net_tools/basics/get_url.py +++ b/lib/ansible/modules/net_tools/basics/get_url.py @@ -538,6 +538,8 @@ def main(): changed = True else: changed = False + if os.path.exists(tmpsrc): + os.remove(tmpsrc) if checksum != '': destination_checksum = module.digest_from_file(dest, algorithm)