diff options
author | Sviatoslav Sydorenko (Святослав Сидоренко) <webknjaz@redhat.com> | 2024-10-18 18:25:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 18:25:40 +0200 |
commit | f7766cf8431e857c0489355621183af925037e13 (patch) | |
tree | e3aaa380697b01bd7333c4a6d893329aab167c2a | |
parent | test: use password to generate random string instead of range (#84129) (diff) | |
download | ansible-f7766cf8431e857c0489355621183af925037e13.tar.xz ansible-f7766cf8431e857c0489355621183af925037e13.zip |
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.
-rw-r--r-- | test/integration/targets/module_utils_facts.system.selinux/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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: |