mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Also fix UTF-8 handling in vars_prompt
This commit is contained in:
parent
ff2d160fff
commit
1541e331c9
1 changed files with 2 additions and 2 deletions
|
@ -34,6 +34,7 @@ from ansible.template import Templar
|
||||||
from ansible.utils.color import colorize, hostcolor
|
from ansible.utils.color import colorize, hostcolor
|
||||||
from ansible.utils.debug import debug
|
from ansible.utils.debug import debug
|
||||||
from ansible.utils.encrypt import do_encrypt
|
from ansible.utils.encrypt import do_encrypt
|
||||||
|
from ansible.utils.unicode import to_unicode
|
||||||
|
|
||||||
class PlaybookExecutor:
|
class PlaybookExecutor:
|
||||||
|
|
||||||
|
@ -274,8 +275,7 @@ class PlaybookExecutor:
|
||||||
result = do_encrypt(result, encrypt, salt_size, salt)
|
result = do_encrypt(result, encrypt, salt_size, salt)
|
||||||
|
|
||||||
# handle utf-8 chars
|
# handle utf-8 chars
|
||||||
# FIXME: make this work
|
result = to_unicode(result, errors='strict')
|
||||||
#result = to_unicode(result, errors='strict')
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue