diff options
author | Zhi Yan Liu <zhiyanl@cn.ibm.com> | 2014-09-12 12:41:16 +0800 |
---|---|---|
committer | Zhi Yan Liu <zhiyanl@cn.ibm.com> | 2014-09-12 12:41:16 +0800 |
commit | 084f8e8d45b9e2eae88904a73b1414eac2e09ac2 (patch) | |
tree | 59fbc0d314b0f62a08627ce34f562de6275d9ed4 /glance_store/backend.py | |
parent | c7e2433d4b8ab6f18e776be2c59af22549617dd5 (diff) | |
download | glance_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.py | 7 |
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.' |