]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: set default value for BlueStore.block_lv to None
authorGuillaume Abrioux <gabrioux@ibm.com>
Wed, 8 Jan 2025 12:45:34 +0000 (12:45 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Mon, 24 Feb 2025 11:53:10 +0000 (11:53 +0000)
commite4f048457d60e606c424b59a34e8020fbfc34f22
tree99cc48221620357c750d0e1ed88fbb9a0d9136fd
parent9bafa3eb403c1ca19cba6623874194f108beb569
ceph-volume: set default value for BlueStore.block_lv to None

This change updates the `BlueStore` class in
`ceph_volume.objectstore` by initializing the `block_lv` attribute
to `None` with the type `Optional[Volume]`. This ensures that the
attribute has a default value and avoids potential runtime errors
when the attribute is accessed before being explicitly assigned.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 4b0c3bbed377e1ee5ae7e4a765741f9a877935ef)
src/ceph-volume/ceph_volume/objectstore/bluestore.py