Skip to content

Commit

Permalink
Drop @cached decorator from openstack_release()
Browse files Browse the repository at this point in the history
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 b2d56ea)
  • Loading branch information
Corey Bryant committed Oct 3, 2023
1 parent 1bdbe6e commit abab27d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion charmhelpers/contrib/openstack/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit abab27d

Please sign in to comment.