summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucian Petrut <lpetrut@cloudbasesolutions.com>2018-11-02 15:08:45 +0200
committerLucian Petrut <lpetrut@cloudbasesolutions.com>2018-11-02 15:30:30 +0200
commit3de4353dcd75cf6563b1c9a33c516cb599147e95 (patch)
tree9ecd300582b427f7c2663c008de3245d74722018
parent5f6971909604bcc19dfea11f8d3f5409a9442ace (diff)
downloadpython-neutronclient-3de4353dcd75cf6563b1c9a33c516cb599147e95.tar.gz
Fix api version handling, which completely breaks the client
The neutron client does not work with recent openstacksdk versions (>=0.18.0): http://paste.openstack.org/raw/734040/ This change addresses a mismatch in the api version format. The neutron client passes a dict while the openstack sdk expects a string. Change-Id: I33c868f1c1e40d7673ba6651abedf3dfe0850660 Closes-Bug: #1801360
-rw-r--r--neutronclient/neutron/client.py2
-rw-r--r--neutronclient/shell.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/neutronclient/neutron/client.py b/neutronclient/neutron/client.py
index 7961a4c..d859d81 100644
--- a/neutronclient/neutron/client.py
+++ b/neutronclient/neutron/client.py
@@ -28,7 +28,7 @@ def make_client(instance):
"""Returns an neutron client."""
neutron_client = utils.get_client_class(
API_NAME,
- instance._api_version[API_NAME],
+ instance._api_version,
API_VERSIONS,
)
instance.initialize()
diff --git a/neutronclient/shell.py b/neutronclient/shell.py
index 4814c81..6dced26 100644
--- a/neutronclient/shell.py
+++ b/neutronclient/shell.py
@@ -596,8 +596,6 @@ class NeutronShell(app.App):
super(NeutronShell, self).initialize_app(argv)
- self.api_version = {'network': self.api_version}
-
# If the user is not asking for help, make sure they
# have given us auth.
cmd_name = None