From a63e4c595f759370451cd5230bd75b2a33287cc4 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 26 Jan 2015 22:04:51 -0800 Subject: [PATCH] Another place that needs to be json_dict_bytes_to_unicode --- lib/ansible/inventory/script.py | 2 +- v2/ansible/inventory/script.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/inventory/script.py b/lib/ansible/inventory/script.py index b3a9bbc5700..9b8d72de41f 100644 --- a/lib/ansible/inventory/script.py +++ b/lib/ansible/inventory/script.py @@ -148,7 +148,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)) diff --git a/v2/ansible/inventory/script.py b/v2/ansible/inventory/script.py index b3a9bbc5700..9b8d72de41f 100644 --- a/v2/ansible/inventory/script.py +++ b/v2/ansible/inventory/script.py @@ -148,7 +148,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))