summaryrefslogtreecommitdiff
path: root/glance_store/backend.py
diff options
context:
space:
mode:
authorZhi Yan Liu <zhiyanl@cn.ibm.com>2014-09-12 12:41:16 +0800
committerZhi Yan Liu <zhiyanl@cn.ibm.com>2014-09-12 12:41:16 +0800
commit084f8e8d45b9e2eae88904a73b1414eac2e09ac2 (patch)
tree59fbc0d314b0f62a08627ce34f562de6275d9ed4 /glance_store/backend.py
parentc7e2433d4b8ab6f18e776be2c59af22549617dd5 (diff)
downloadglance_store-084f8e8d45b9e2eae88904a73b1414eac2e09ac2.tar.gz
Correct base class of no_conf driver
1. Fix wrong base class of no_conf store driver. 2. Enhance create_stores() to handle NotImplementedError case. Change-Id: I0f38d101a994b3a3d0c7a10bdd2e936e026b407b Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Diffstat (limited to 'glance_store/backend.py')
-rw-r--r--glance_store/backend.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/glance_store/backend.py b/glance_store/backend.py
index 5a193b8..4c96d1d 100644
--- a/glance_store/backend.py
+++ b/glance_store/backend.py
@@ -185,8 +185,11 @@ def create_stores(conf=CONF):
store_count = 0
for (store_entry, store_instance) in _load_stores(conf):
- schemes = store_instance.get_schemes()
- store_instance.configure()
+ try:
+ schemes = store_instance.get_schemes()
+ store_instance.configure()
+ except NotImplementedError:
+ continue
if not schemes:
raise exceptions.BackendException('Unable to register store %s. '
'No schemes associated with it.'