From d2f67e8efea8eec99e830786500c28ee6012d718 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Tue, 22 Mar 2016 15:42:16 -0700 Subject: [PATCH] Remove unused argument v3mode Since I17e08b09d0cae0c84362691de6b660477174344f , the argument has been unused. So this patch removes it for the cleanup. Change-Id: Ic6ed32fa487e0d4d8fe0d3ba0d160c5947afe4b5 --- nova/api/openstack/__init__.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/nova/api/openstack/__init__.py b/nova/api/openstack/__init__.py index 5ed7b48a1c16..e25ea89d3014 100644 --- a/nova/api/openstack/__init__.py +++ b/nova/api/openstack/__init__.py @@ -345,12 +345,10 @@ class APIRouterV21(base_wsgi.Router): def api_extension_namespace(): return 'nova.api.v21.extensions' - def __init__(self, init_only=None, v3mode=False): + def __init__(self, init_only=None): # TODO(cyeoh): bp v3-api-extension-framework. Currently load # all extensions but eventually should be able to exclude # based on a config file - # TODO(oomichi): We can remove v3mode argument after moving all v3 APIs - # to v2.1. def _check_load_extension(ext): if (self.init_only is None or ext.obj.alias in self.init_only) and isinstance(ext.obj, @@ -398,10 +396,7 @@ class APIRouterV21(base_wsgi.Router): invoke_on_load=True, invoke_kwds={"extension_info": self.loaded_extension_info}) - if v3mode: - mapper = PlainMapper() - else: - mapper = ProjectMapper() + mapper = ProjectMapper() self.resources = {}