diff options
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.patch | 30 |
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 @@ | |||
| 1 | From 929b981a5970082980dcda7ad531ab7f2fb71577 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
| 3 | Date: Wed, 30 Apr 2014 23:54:30 -0400 | ||
| 4 | Subject: [PATCH] glance/store: only load known stores, not all stores | ||
| 5 | |||
| 6 | To avoid the import of modules and support for unnecessary storage options, | ||
| 7 | we only load the store modules that are specified as known_stores in the | ||
| 8 | glance-api.conf. | ||
| 9 | |||
| 10 | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
| 11 | --- | ||
| 12 | glance/store/__init__.py | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/glance/store/__init__.py b/glance/store/__init__.py | ||
| 16 | index 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 | -- | ||
| 29 | 1.7.10.4 | ||
| 30 | |||
