Temporarily revert c119d54

There were bugs in this that needed to be resolved.  No time to get the
fix reviewed sufficiently for 2.6.0.

We'll get this into 2.7.0 and try to get this into 2.6.1 as well.

Will need the work done in https://github.com/ansible/ansible/pull/36218
when it does get merged.
This commit is contained in:
Toshio Kuratomi 2018-06-15 11:36:07 -07:00 committed by Matt Clay
parent 6fa2d9ac6f
commit 5c614a59a6
6 changed files with 13 additions and 13 deletions

View file

@ -276,7 +276,7 @@ JSON_CANDIDATES = ('text', 'json', 'javascript')
def write_file(module, url, dest, content):
# create a tempfile with some test content
fd, tmpsrc = tempfile.mkstemp(dir=getattr(module, 'tmpdir', None))
fd, tmpsrc = tempfile.mkstemp()
f = open(tmpsrc, 'wb')
try:
f.write(content)