mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #13708 from Yannig/devel_fix_to_string_not_defined
Replace to_string by to_unicode.
This commit is contained in:
commit
5a33004b18
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class Inventory(object):
|
||||||
try:
|
try:
|
||||||
(host, port) = parse_address(h, allow_ranges=False)
|
(host, port) = parse_address(h, allow_ranges=False)
|
||||||
except AnsibleError as e:
|
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
|
host = h
|
||||||
port = None
|
port = None
|
||||||
all.add_host(Host(host, port))
|
all.add_host(Host(host, port))
|
||||||
|
|
Loading…
Reference in a new issue