[2.14] Trim `selinux_policytype` @ integration tests (#84141)

The shell command sometimes prints a trailing whitespace which breaks
the tests on old RHELs. This patch is supposed to fix that.

(cherry picked from commit cd74c4bcd5)
pull/84183/head
Sviatoslav Sydorenko (Святослав Сидоренко) 1 month ago committed by GitHub
parent cdd36b908d
commit 71a2eba2e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -22,7 +22,7 @@
register: r register: r
- set_fact: - set_fact:
selinux_policytype: "{{ r.stdout_lines[0] }}" selinux_policytype: "{{ r.stdout_lines[0] | trim }}"
when: r is success and r.stdout_lines when: r is success and r.stdout_lines
- assert: - assert:

Loading…
Cancel
Save