]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: make systemctl.get_running_osds resilient to garbage output
authorAndrew Schoen <aschoen@redhat.com>
Fri, 8 Mar 2019 15:53:08 +0000 (09:53 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 8 Mar 2019 15:58:59 +0000 (09:58 -0600)
commitf3707f1ad43513c2a6df17e9dce756533c3b4a1d
tree83a9f5a577427f304fc937ccb02629bc46a56f37
parentb59dcd01c2dd386ca1b63eb66ed243afffb80211
ceph-volume: make systemctl.get_running_osds resilient to garbage output

Makes systemd.systemctl.get_running_osds more resilient to output
that doesn't match what we're expecting to parse. This also handles
the case of a nonzero exit status by retuning an empty list.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/systemd/systemctl.py
src/ceph-volume/ceph_volume/tests/systemd/test_systemctl.py