From abab27dc0e4aa02cedd434e70c1cc2701b3a7a91 Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Fri, 29 Sep 2023 15:01:00 -0400 Subject: [PATCH] Drop @cached decorator from openstack_release() The openstack_release() function is typically called (indirectly) by os_release() which already does caching. The caching of openstack_release() was preventing updates to the value during upgrading to a new release of openstack. Closes-Bug: #2037751 (cherry picked from commit b2d56ea0da322534de6295b0b09540dedf583e3c) --- charmhelpers/contrib/openstack/utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/charmhelpers/contrib/openstack/utils.py b/charmhelpers/contrib/openstack/utils.py index b6171fc03..22a10e300 100644 --- a/charmhelpers/contrib/openstack/utils.py +++ b/charmhelpers/contrib/openstack/utils.py @@ -581,7 +581,6 @@ def _do_install(): return openstack_release().get('OPENSTACK_CODENAME') -@cached def openstack_release(): """Return /etc/os-release in a dict.""" d = {}