mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove temp checksum file (#45871)
This commit is contained in:
parent
0947948d6b
commit
4b121ea2ad
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
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:
|
with open(checksum_tmpsrc) as f:
|
||||||
lines = [line.rstrip('\n') for line in f]
|
lines = [line.rstrip('\n') for line in f]
|
||||||
|
os.remove(checksum_tmpsrc)
|
||||||
lines = dict(s.split(None, 1) for s in lines)
|
lines = dict(s.split(None, 1) for s in lines)
|
||||||
filename = url_filename(url)
|
filename = url_filename(url)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue