switch_to_container: fix osd systemd regex

The systemd LOAD and ACTIVE fileds could have more than one space between
both values.
This update the systemd regex the same way we're using it in different
part of the code.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1843500

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/5418/head
Dimitri Savineau 2020-06-04 16:57:17 -04:00 committed by Guillaume Abrioux
parent 0175c205fa
commit 50140c9b5d
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@
- name: collect running osds - name: collect running osds
shell: | shell: |
systemctl list-units | grep "loaded active" | grep -Eo 'ceph-osd@[0-9]+.service|ceph-volume|ceph\.target' systemctl list-units | grep -E "loaded * active" | grep -Eo 'ceph-osd@[0-9]+.service|ceph-volume|ceph\.target'
register: running_osds register: running_osds
changed_when: false changed_when: false
failed_when: false failed_when: false