diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2017-01-10 18:14:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-10 18:14:20 -0800 |
commit | 1786c81a654611fe2c4ca4f03904aab0b533c1ed (patch) | |
tree | 9a3166227ac5125d0b2673376e067f32a85d6706 /bin | |
parent | f340b8d14fec8c96f28c16c3c4d70f2d3fb83383 (diff) | |
download | ansible-1786c81a654611fe2c4ca4f03904aab0b533c1ed.tar.gz |
Previous fix to this failed to account for open_url returning a filehandle (#20097)
* Previous fix to this failed to account for open_url returning a filehandle
Fixes the bugs introduced by c6fb355
* read() from HTTPError for python-3.6+
HTTPError is funny. It contains a filehandle to read the response from
and also makes it available via a read() method. On earlier versions of
python (2 and 3) the read() method was enough to make it work with
json.load(). The newer version of json.load() needs a more complete
file interface than this and has stopped working. Read the bytes,
transform to str and pass it in manually to fix it.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions