fix closure issues

fixes #31786

(cherry picked from commit a26a2841ff)
pull/31973/head
Brian Coca 8 years ago committed by Toshio Kuratomi
parent 7e6554b9ff
commit d7e3665f3f

@ -2533,6 +2533,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')

Loading…
Cancel
Save