diff --git a/lib/ansible/inventory/script.py b/lib/ansible/inventory/script.py index c599791e7d9..6301d318793 100644 --- a/lib/ansible/inventory/script.py +++ b/lib/ansible/inventory/script.py @@ -144,7 +144,7 @@ class InventoryScript(object): if out.strip() == '': return dict() try: - return json_dict_unicode_to_bytes(utils.parse_json(out)) + return json_dict_bytes_to_unicode(utils.parse_json(out)) except ValueError: raise errors.AnsibleError("could not parse post variable response: %s, %s" % (cmd, out))