Python 3 fixes for apt_* modules. (#4754)

This commit is contained in:
Matt Clay 2016-09-08 17:56:09 -07:00
commit e8f70f25df
3 changed files with 7 additions and 5 deletions

View file

@ -130,7 +130,7 @@ def all_keys(module, keyring, short_format):
cmd = "apt-key adv --list-public-keys --keyid-format=long"
(rc, out, err) = module.run_command(cmd)
results = []
lines = out.split('\n')
lines = to_native(out).split('\n')
for line in lines:
if line.startswith("pub") or line.startswith("sub"):
tokens = line.split()