summaryrefslogtreecommitdiff
path: root/novaclient/client.py
diff options
context:
space:
mode:
authorjichenjc <jichenjc@cn.ibm.com>2016-02-24 14:08:40 +0800
committerjichenjc <jichenjc@cn.ibm.com>2016-02-24 17:15:31 +0800
commit68c16f82d59fc7b17070adf22b756746b503159a (patch)
tree3252d71a9537d917d9b751af30353a1252d9d18b /novaclient/client.py
parent5afb7889af12e24a329ce98511e7eab7600aa747 (diff)
downloadpython-novaclient-68c16f82d59fc7b17070adf22b756746b503159a.tar.gz
Prepare to move extension into core plugin
As nova stable_api.rst indicated: As the extension will be removed from Nove V2.1 REST API. So the concept of core API and extension API is eliminated also. There is no difference between Nova V2.1 REST API, all of them are part of Nova stable REST API. so we can move all extensions from contrib to core, this patch is prelude of https://review.openstack.org/#/c/285213/ and its following patchs. Change-Id: Ibd5df4bcc70a4b4854fd519330d89c751f7409dc
Diffstat (limited to 'novaclient/client.py')
-rw-r--r--novaclient/client.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/novaclient/client.py b/novaclient/client.py
index fe2d12e2..5fa7060d 100644
--- a/novaclient/client.py
+++ b/novaclient/client.py
@@ -54,6 +54,12 @@ from novaclient import service_catalog
from novaclient import utils
+# TODO(jichenjc): when an extension in contrib is moved to core extension,
+# Add the name into the following list, then after last patch merged,
+# remove the whole function
+extensions_ignored_name = ["__init__"]
+
+
class _ClientConnectionPool(object):
def __init__(self):
@@ -768,7 +774,7 @@ def _discover_via_contrib_path(version):
for ext_path in glob.iglob(ext_glob):
name = os.path.basename(ext_path)[:-3]
- if name == "__init__":
+ if name in extensions_ignored_name:
continue
module = imp.load_source(name, ext_path)