]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume batch: refactor filtered_devices and strategy retrieval
authorJan Fajerski <jfajerski@suse.com>
Wed, 28 Nov 2018 11:20:20 +0000 (12:20 +0100)
committerJan Fajerski <jfajerski@suse.com>
Fri, 19 Jul 2019 10:52:19 +0000 (12:52 +0200)
commit6de41d968ded47b1af6f6389f5d7796c3ea09fe0
tree9087d239d00df2df2effa6844fabd89a10bd487b
parent75d1a836418b061c6cc88f5fdfb9c2c162257ddf
ceph-volume batch: refactor filtered_devices and strategy retrieval

Keep filtered_devices as a member variable of the batch object and pass
this to the report functionality instead of having the report functions
retrieve filtered_devices. Also keep selected strategy as a batch member
variable to avoid re-retrival in e.g. the report methods.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit dc2c4c597249d61ea6f48d37dbe02d8b97e3d55d)
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/devices/lvm/strategies/bluestore.py
src/ceph-volume/ceph_volume/devices/lvm/strategies/filestore.py
src/ceph-volume/ceph_volume/devices/lvm/strategies/strategies.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py