Skip to content

Commit

Permalink
switch_to_container: fix osd systemd regex
Browse files Browse the repository at this point in the history
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>
(cherry picked from commit 50140c9)
  • Loading branch information
dsavineau committed Jun 16, 2020
1 parent b30a943 commit a165edb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@

- name: collect running osds
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
changed_when: false
failed_when: false
Expand Down

0 comments on commit a165edb

Please sign in to comment.