From f7766cf8431e857c0489355621183af925037e13 Mon Sep 17 00:00:00 2001 From: "Sviatoslav Sydorenko (Святослав Сидоренко)" Date: Fri, 18 Oct 2024 18:25:40 +0200 Subject: Trim `selinux_policytype` @ integration tests (#84136) The shell command sometimes prints a trailing whitespace which breaks the tests on old RHELs. This patch is supposed to fix that. --- .../targets/module_utils_facts.system.selinux/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/targets/module_utils_facts.system.selinux/tasks/main.yml b/test/integration/targets/module_utils_facts.system.selinux/tasks/main.yml index 171723958e..7687223115 100644 --- a/test/integration/targets/module_utils_facts.system.selinux/tasks/main.yml +++ b/test/integration/targets/module_utils_facts.system.selinux/tasks/main.yml @@ -22,7 +22,7 @@ register: r - set_fact: - selinux_policytype: "{{ r.stdout_lines[0] }}" + selinux_policytype: "{{ r.stdout_lines[0] | trim }}" when: r is success and r.stdout_lines - assert: -- cgit v1.2.3