1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fix closure issues

fixes #31786
This commit is contained in:
Brian Coca 2017-10-16 10:43:22 -04:00 committed by Toshio Kuratomi
parent 1e85facf36
commit a26a2841ff

View file

@ -2538,6 +2538,7 @@ class AnsibleModule(object):
# sadly there are some situations where we cannot ensure atomicity, but only if # 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 # the user insists and we get the appropriate error we update the file unsafely
try: try:
out_dest = in_src = None
try: try:
out_dest = open(dest, 'wb') out_dest = open(dest, 'wb')
in_src = open(src, 'rb') in_src = open(src, 'rb')