Merge "_human_id_cache or _uuid_cache error about completion_cache"
This commit is contained in:
commit
dda5f5afe4
|
@ -297,7 +297,12 @@ class Manager(common_base.HookableMixin):
|
||||||
cache = getattr(self, cache_attr, None)
|
cache = getattr(self, cache_attr, None)
|
||||||
if cache:
|
if cache:
|
||||||
cache.close()
|
cache.close()
|
||||||
delattr(self, cache_attr)
|
try:
|
||||||
|
delattr(self, cache_attr)
|
||||||
|
except AttributeError:
|
||||||
|
# NOTE(kiall): If this attr is deleted by another
|
||||||
|
# operation, don't fail any way.
|
||||||
|
pass
|
||||||
|
|
||||||
def write_to_completion_cache(self, cache_type, val):
|
def write_to_completion_cache(self, cache_type, val):
|
||||||
cache = getattr(self, "_%s_cache" % cache_type, None)
|
cache = getattr(self, "_%s_cache" % cache_type, None)
|
||||||
|
|
Loading…
Reference in New Issue