commit 8ec1be5f8d3f59290f5c7edb65a4eee6f377c9eb
Author: Alex Kavanagh <email address hidden>
Date: Thu Aug 4 11:57:02 2022 +0100
Further fix to OpenStackAPIRelationAdapters
The existing method of using a property to lazily load the cluster
relation adapter permanently changes the class to include that as
a cluster property. This means that a future (in the same hook
execution) instantiation of the class would include that property,
which means that 'real' cluster adapter could not be used. Sadly,
this was happening with the manila charm, and possibly others.
This patch changes it from a lazily loaded property, to a simple
attribute.
Change-Id: I704f362e0dd845ff00d0f0470b0235a4dead5f9f
Closes-Bug: #1981736
(cherry picked from commit 581300632b426e985bf3daaed426daf3c89f825a)
Reviewed: https:/ /review. opendev. org/c/openstack /charms. openstack/ +/852413 /opendev. org/openstack/ charms. openstack/ commit/ 8ec1be5f8d3f592 90f5c7edb65a4ee e6f377c9eb
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 8ec1be5f8d3f592 90f5c7edb65a4ee e6f377c9eb
Author: Alex Kavanagh <email address hidden>
Date: Thu Aug 4 11:57:02 2022 +0100
Further fix to OpenStackAPIRel ationAdapters
The existing method of using a property to lazily load the cluster
relation adapter permanently changes the class to include that as
a cluster property. This means that a future (in the same hook
execution) instantiation of the class would include that property,
which means that 'real' cluster adapter could not be used. Sadly,
this was happening with the manila charm, and possibly others.
This patch changes it from a lazily loaded property, to a simple
attribute.
Change-Id: I704f362e0dd845 ff00d0f0470b023 5a4dead5f9f 85bf3daaed426da f3c89f825a)
Closes-Bug: #1981736
(cherry picked from commit 581300632b426e9