Open guillaumewatteeux opened 2 years ago
Same issue with community.windows.win_certificate_info
module. I have a certificate with Spanish characters in the information.
host.ansible("community.windows.win_certificate_info", ...)
self = <testinfra.backend.ansible.AnsibleBackend object at 0x7ff31cdfe650>
command = "python3 -c 'import locale;print(locale.getpreferredencoding())'"
args = ('python3',), kwargs = {'encoding': None}, host = None
out = {'changed': False, 'module_stderr': 'Exception calling "Create" with "1" argument(s): "At line:4 char:21\r\n+ def _ans...rrorId : BadExpression\r\n ', 'module_stdout': '', 'msg': 'MODULE FAILURE\nSee stdout/stderr for the exact error', ...}
I don't know howto force encoding to UTF-8
see #653
When i wants to use ansible backend on windows host, i have a problem with ascii decode
Use ansible.windows.win_service_info to retrieve all services
result:
On windows, a service "Function Discovery Provider Host" contains a description with Web Services – Discovery (character 'En Dash', U+2013) a 'En dash' character in service description ....
I'm using Ansible backend on windows, python don't install on it.