mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-01 04:30:22 -07:00
Python 3 fixes for apt_* modules. (#4754)
This commit is contained in:
parent
d339004437
commit
e8f70f25df
3 changed files with 7 additions and 5 deletions
|
@ -374,7 +374,7 @@ class UbuntuSourcesList(SourcesList):
|
|||
response, info = fetch_url(self.module, lp_api, headers=headers)
|
||||
if info['status'] != 200:
|
||||
self.module.fail_json(msg="failed to fetch PPA information, error was: %s" % info['msg'])
|
||||
return json.load(response)
|
||||
return json.loads(to_native(response.read()))
|
||||
|
||||
def _expand_ppa(self, path):
|
||||
ppa = path.split(':')[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue