The following methods are overridden in DriverBlockDevice class.
* __getattr__
* __getitem__
The 'get' method is not overridden.
The value cannot be got by the 'get' method
though the value can be got by '__getattr__' (e.g. bdm.volumd_id)
or '__getitem__' (e.g. bdm['volume_id']) method.
So override the 'get' method to fix the issue.
Conflicts:
nova/tests/unit/virt/test_block_device.py
The conflict is due to not including
Icc301230fe7c8e3ebbbcc7f4a807e562db7f93e3 in rocky.
Change-Id: Ic665fc1956831110937d98553e526cb909e49997
Closes-Bug: #1816938
(cherry picked from commit 3c66b40dbd)
(cherry picked from commit ae40ceba84)