diff --git a/glance_store/capabilities.py b/glance_store/capabilities.py index a9878acc..b2acf7f0 100644 --- a/glance_store/capabilities.py +++ b/glance_store/capabilities.py @@ -21,6 +21,7 @@ import time import enum from eventlet import tpool +from oslo_utils import reflection from glance_store import exceptions from glance_store import i18n @@ -94,7 +95,7 @@ class StoreCapability(object): "storage capabilities. Please overwrite " "'update_capabilities' method of the store to " "implement updating logics if needed.") % - self.__class__.__name__) + reflection.get_class_name(self)) def is_capable(self, *capabilities): """