diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2017-10-16 10:43:22 -0400 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2017-10-18 14:16:42 -0700 |
commit | d7e3665f3f21ecb4ef0cb4bc6a34f059c005f211 (patch) | |
tree | c2918806b99d681072417e4a907a3dadd90a92f8 | |
parent | 7e6554b9ff9bc0c9ac97ea3722965501124c481f (diff) | |
download | ansible-d7e3665f3f21ecb4ef0cb4bc6a34f059c005f211.tar.gz |
fix closure issues
fixes #31786
(cherry picked from commit a26a2841ff2d69590575a66e7661a89c18b5d0bd)
-rw-r--r-- | lib/ansible/module_utils/basic.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 8006415df4..f05ced360c 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -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') |