1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Replace to_string by to_unicode.

Fix https://github.com/ansible/ansible/issues/13707
This commit is contained in:
Yannig Perré 2016-01-01 15:55:51 +01:00
parent 34b78639b7
commit c4d2dbfcdb

View file

@ -112,7 +112,7 @@ class Inventory(object):
try:
(host, port) = parse_address(h, allow_ranges=False)
except AnsibleError as e:
display.vvv("Unable to parse address from hostname, leaving unchanged: %s" % to_string(e))
display.vvv("Unable to parse address from hostname, leaving unchanged: %s" % to_unicode(e))
host = h
port = None
all.add_host(Host(host, port))