mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
python3 fix
This commit is contained in:
parent
52eb5032ba
commit
0ddbcf8841
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ import os
|
||||||
from subprocess import Popen, PIPE
|
from subprocess import Popen, PIPE
|
||||||
|
|
||||||
from ansible.errors import AnsibleParserError
|
from ansible.errors import AnsibleParserError
|
||||||
from ansible.module_utils._text import to_bytes
|
from ansible.module_utils._text import to_bytes, to_text
|
||||||
from ansible.plugins.inventory import BaseInventoryPlugin
|
from ansible.plugins.inventory import BaseInventoryPlugin
|
||||||
|
|
||||||
|
|
||||||
|
@ -215,6 +215,6 @@ class InventoryModule(BaseInventoryPlugin):
|
||||||
AnsibleParserError(e)
|
AnsibleParserError(e)
|
||||||
|
|
||||||
source_data = p.stdout.readlines()
|
source_data = p.stdout.readlines()
|
||||||
inventory.cache[cache_key] = source_data
|
inventory.cache[cache_key] = to_text(source_data)
|
||||||
|
|
||||||
self._populate_from_source(source_data, config_data)
|
self._populate_from_source(source_data, config_data)
|
||||||
|
|
Loading…
Reference in a new issue