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
  • Loading branch information
Corey Bryant committed Sep 29, 2023
1 parent e4bbecd commit b2d56ea
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 @@ -585,7 +585,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 b2d56ea

Please sign in to comment.