summaryrefslogtreecommitdiff
path: root/glance/api/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'glance/api/__init__.py')
-rw-r--r--glance/api/__init__.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/glance/api/__init__.py b/glance/api/__init__.py
index df41d7a..b62d4a1 100644
--- a/glance/api/__init__.py
+++ b/glance/api/__init__.py
@@ -20,8 +20,6 @@ CONF = cfg.CONF
20 20
21 21
22def root_app_factory(loader, global_conf, **local_conf): 22def root_app_factory(loader, global_conf, **local_conf):
23 if not CONF.enable_v1_api and '/v1' in local_conf:
24 del local_conf['/v1']
25 if not CONF.enable_v2_api and '/v2' in local_conf: 23 if not CONF.enable_v2_api and '/v2' in local_conf:
26 del local_conf['/v2'] 24 del local_conf['/v2']
27 return paste.urlmap.urlmap_factory(loader, global_conf, **local_conf) 25 return paste.urlmap.urlmap_factory(loader, global_conf, **local_conf)