ansible-test: fix typo in validate-modules (#76765)

The correct error strategy for the to_text method is surrogate_or_strict

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/76793/head
Dimitri Savineau 3 years ago committed by GitHub
parent 89c884e2a2
commit a0f6747f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - fix a typo in validate-modules.

@ -117,7 +117,7 @@ def get_ps_argument_spec(filename, collection):
ps_dep_finder._add_module(name=b"Ansible.ModuleUtils.AddType", ext=".psm1", fqn=None, optional=False, wrapper=False)
util_manifest = json.dumps({
'module_path': to_text(module_path, errors='surrogiate_or_strict'),
'module_path': to_text(module_path, errors='surrogate_or_strict'),
'ansible_basic': ps_dep_finder.cs_utils_module["Ansible.Basic"]['path'],
'ps_utils': {name: info['path'] for name, info in ps_dep_finder.ps_modules.items()}
})

Loading…
Cancel
Save