summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-glance
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance')
-rw-r--r--meta-openstack/recipes-devtools/python/python-glance/0001-glance-store-only-load-known-stores-not-all-stores.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance/0001-glance-store-only-load-known-stores-not-all-stores.patch b/meta-openstack/recipes-devtools/python/python-glance/0001-glance-store-only-load-known-stores-not-all-stores.patch
new file mode 100644
index 0000000..080f6ed
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-glance/0001-glance-store-only-load-known-stores-not-all-stores.patch
@@ -0,0 +1,30 @@
1From 929b981a5970082980dcda7ad531ab7f2fb71577 Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@windriver.com>
3Date: Wed, 30 Apr 2014 23:54:30 -0400
4Subject: [PATCH] glance/store: only load known stores, not all stores
5
6To avoid the import of modules and support for unnecessary storage options,
7we only load the store modules that are specified as known_stores in the
8glance-api.conf.
9
10Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
11---
12 glance/store/__init__.py | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/glance/store/__init__.py b/glance/store/__init__.py
16index 33a67d626d37..0fdedcfe3c86 100644
17--- a/glance/store/__init__.py
18+++ b/glance/store/__init__.py
19@@ -181,7 +181,7 @@ def create_stores():
20 """
21 store_count = 0
22 store_classes = set()
23- for store_entry in set(CONF.known_stores + _ALL_STORES):
24+ for store_entry in set(CONF.known_stores):
25 store_entry = store_entry.strip()
26 if not store_entry:
27 continue
28--
291.7.10.4
30