~corey.bryant/charm-helpers/os-release-cache

« back to all changes in this revision

Viewing changes to charmhelpers/contrib/openstack/utils.py

  • Committer: Corey Bryant
  • Date: 2017-09-07 12:13:37 UTC
  • Revision ID: corey.bryant@canonical.com-20170907121337-7ttniwjx131dyu2b
Reset os_release cache in enable_memcache

In enable_memcache, ensure that the os_release cache is reset.
This enables install of memcached after upgrades when memcached
is introduced in the new release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2012
2012
    if release:
2013
2013
        _release = release
2014
2014
    else:
2015
 
        _release = os_release(package, base='icehouse')
 
2015
        _release = os_release(package, base='icehouse', reset_cache=True)
2016
2016
    if not _release:
2017
2017
        _release = get_os_codename_install_source(source)
2018
2018