mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-06 00:14:02 -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
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue