summaryrefslogtreecommitdiff
path: root/lib/ansible
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2017-09-02 00:18:04 -0400
committerBrian Coca <brian.coca+git@gmail.com>2017-09-06 09:42:58 -0400
commit0ddbcf884139ea3deb194035a799495eecebb6f3 (patch)
treedc1d9f0eb172b7838c1708a7c52a2198c578f631 /lib/ansible
parent52eb5032baf77185cc45086bc9544918c8088788 (diff)
downloadansible-0ddbcf884139ea3deb194035a799495eecebb6f3.tar.gz
python3 fix
Diffstat (limited to 'lib/ansible')
-rw-r--r--lib/ansible/plugins/inventory/virtualbox.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/plugins/inventory/virtualbox.py b/lib/ansible/plugins/inventory/virtualbox.py
index 98013e7d22..5f24b393fb 100644
--- a/lib/ansible/plugins/inventory/virtualbox.py
+++ b/lib/ansible/plugins/inventory/virtualbox.py
@@ -65,7 +65,7 @@ import os
from subprocess import Popen, PIPE
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
@@ -215,6 +215,6 @@ class InventoryModule(BaseInventoryPlugin):
AnsibleParserError(e)
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)