Skip to content

Commit

Permalink
Remove temp checksum file (ansible#45871)
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran authored Sep 20, 2018
1 parent 0947948 commit 4b121ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ansible/modules/net_tools/basics/get_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4b121ea

Please sign in to comment.