From 712a8c7f9c5c89071f7f3d87a8d4484921581cf6 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Thu, 10 May 2012 15:47:59 -0500 Subject: Add API versioning support * Specific versions supported are managed in XXXXXX.client.py with a mapping from version to client class. This is based on the scheme that is included in novaclient; none of the other client libs have that capability. Change-Id: I930b197f1189e7f52c3b0096e73e0773cf925542 --- openstackclient/compute/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openstackclient/compute') diff --git a/openstackclient/compute/client.py b/openstackclient/compute/client.py index d37bdfb6..fa37ff55 100644 --- a/openstackclient/compute/client.py +++ b/openstackclient/compute/client.py @@ -27,7 +27,7 @@ def make_client(instance): """ LOG.debug('instantiating compute client') client = nova_client.Client( - version=instance._compute_api_version, + version=instance._api_version['compute'], username=instance._username, api_key=instance._password, project_id=instance._tenant_name, -- cgit v1.2.1