From a0f6747f077898a97a0d8f9849e11377a58d7117 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Tue, 18 Jan 2022 10:12:34 -0500 Subject: [PATCH] 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 --- .../fragments/ansible-test-fix-typo-validate-modules.yaml | 2 ++ .../sanity/validate-modules/validate_modules/module_args.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/ansible-test-fix-typo-validate-modules.yaml diff --git a/changelogs/fragments/ansible-test-fix-typo-validate-modules.yaml b/changelogs/fragments/ansible-test-fix-typo-validate-modules.yaml new file mode 100644 index 00000000000..a3cac40f7aa --- /dev/null +++ b/changelogs/fragments/ansible-test-fix-typo-validate-modules.yaml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-test - fix a typo in validate-modules. diff --git a/test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/module_args.py b/test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/module_args.py index 72beef3c595..326bcb7b1d7 100644 --- a/test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/module_args.py +++ b/test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/module_args.py @@ -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()} })