]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: don't exit before empty report can be printed 37522/head
authorJan Fajerski <jfajerski@suse.com>
Thu, 8 Oct 2020 06:45:26 +0000 (08:45 +0200)
committerJan Fajerski <jfajerski@suse.com>
Thu, 8 Oct 2020 09:54:33 +0000 (11:54 +0200)
commit4320a8d9567562037c91cb4f8b8325928d704d9d
tree046a6d65493c050133ba3ab6e37b01cfb534844d
parent4ff1c12670298eb88060ebe94c463d690f72c096
ceph-volume: don't exit before empty report can be printed

get_plan() called exit in case of an empty plan. This prevented a report
being printed under these circumstances. Avoid exit in this case. Also
adds tests to ensure an empty report is printed.

Fixes: https://tracker.ceph.com/issues/47760
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 0cc5604843b215709a681fa402145c9fa403b1dd)
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py