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)
self.block_device_path: str = ''
self.wal_device_path: str = ''
self.db_device_path: str = ''
- self.block_lv: Volume
+ self.block_lv: Optional[Volume] = None
def add_objectstore_opts(self) -> None:
"""