mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
committed by
Toshio Kuratomi
parent
1e85facf36
commit
a26a2841ff
@@ -2538,6 +2538,7 @@ class AnsibleModule(object):
|
||||
# sadly there are some situations where we cannot ensure atomicity, but only if
|
||||
# the user insists and we get the appropriate error we update the file unsafely
|
||||
try:
|
||||
out_dest = in_src = None
|
||||
try:
|
||||
out_dest = open(dest, 'wb')
|
||||
in_src = open(src, 'rb')
|
||||
|
||||
Reference in New Issue
Block a user