mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Another place that needs to be json_dict_bytes_to_unicode
This commit is contained in:
parent
0f6b87d33e
commit
a63e4c595f
2 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ class InventoryScript(object):
|
||||||
if out.strip() == '':
|
if out.strip() == '':
|
||||||
return dict()
|
return dict()
|
||||||
try:
|
try:
|
||||||
return json_dict_unicode_to_bytes(utils.parse_json(out))
|
return json_dict_bytes_to_unicode(utils.parse_json(out))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise errors.AnsibleError("could not parse post variable response: %s, %s" % (cmd, out))
|
raise errors.AnsibleError("could not parse post variable response: %s, %s" % (cmd, out))
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ class InventoryScript(object):
|
||||||
if out.strip() == '':
|
if out.strip() == '':
|
||||||
return dict()
|
return dict()
|
||||||
try:
|
try:
|
||||||
return json_dict_unicode_to_bytes(utils.parse_json(out))
|
return json_dict_bytes_to_unicode(utils.parse_json(out))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise errors.AnsibleError("could not parse post variable response: %s, %s" % (cmd, out))
|
raise errors.AnsibleError("could not parse post variable response: %s, %s" % (cmd, out))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue