From cd74c4bcd512ada50e9fc04e3e04f7b117f2eb19 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Fri, 18 Oct 2024 03:06:13 +0200 Subject: [PATCH] Trim `selinux_policytype` @ integration tests 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 171723958e2..7687223115f 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: