summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glance_store/backend.py7
-rw-r--r--glance_store/tests/fakes.py3
2 files changed, 7 insertions, 3 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.'
diff --git a/glance_store/tests/fakes.py b/glance_store/tests/fakes.py
index 8464ac0..0050dd9 100644
--- a/glance_store/tests/fakes.py
+++ b/glance_store/tests/fakes.py
@@ -13,9 +13,10 @@
# License for the specific language governing permissions and limitations
# under the License.
+from glance_store import driver
from glance_store import exceptions
-class UnconfigurableStore(base.Store):
+class UnconfigurableStore(driver.Store):
def configure(self):
raise exceptions.BadStoreConfiguration()