]> 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>
Wed, 8 Jan 2025 12:45:34 +0000 (12:45 +0000)
commit4b0c3bbed377e1ee5ae7e4a765741f9a877935ef
tree4e58772672b8ae66f5b344cf96b486776fb13684
parent297aa57ca5ff9e7822d94b504b776f12407a1854
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>
src/ceph-volume/ceph_volume/objectstore/bluestore.py