1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00

fixup remove use of delete_on_close added python 3.12

This commit is contained in:
Eero Aaltonen 2026-03-15 22:41:21 +02:00
parent 3b81afb626
commit 6bb5bf8dc7

View file

@ -63,10 +63,9 @@ class ActionModule(ActionBase):
new_task = self._task.copy()
with tempfile.NamedTemporaryFile('wb', delete=True, delete_on_close=False) as f:
with tempfile.NamedTemporaryFile('wb', delete=True) as f:
f.write(bytes(key))
f.flush()
f.close()
new_task.args.update(
dict(