Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previous fix to this failed to account for open_url returning a fileh…
…andle (ansible#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.
- Loading branch information