
Patch I253123d5451b32f0e3143916e41aaa1af75561c2 fixed the DetachedInstanceError for VolumeAttachment OVOs but only partially, as apparently it was dependent on the SQLAlchemy version due to the use os "hasattr". This patch replaces "hasattr" with a check on the object's dictionary, which will never trigger a Lazy Load. Closes-Bug: #1834845 Change-Id: Iac785eef9be4b9cdb5c739ee0a87949805282867
Release notes
The release notes for a patch should be included in the patch. The intended audience for release notes include deployers, administrators and end-users.
A release note is required if the patch has upgrade or API impact. It is also required if the patch adds a feature or fixes a long-standing or security bug.
Please see https://docs.openstack.org/cinder/latest/contributor/releasenotes.html for more details.