]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: don't exit before empty report can be printed 37591/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 06:50:59 +0000 (08:50 +0200)
commit0cc5604843b215709a681fa402145c9fa403b1dd
tree95dbf0c3197bc368595a4a56f69f581e5cb9f29c
parent821b66e67c031fdc0f510aa3655db45c94522a07
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>
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py