diff --git a/cinderclient/base.py b/cinderclient/base.py index 0705a5e5e..4716b7fd7 100644 --- a/cinderclient/base.py +++ b/cinderclient/base.py @@ -297,7 +297,12 @@ class Manager(common_base.HookableMixin): cache = getattr(self, cache_attr, None) if cache: 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): cache = getattr(self, "_%s_cache" % cache_type, None)