diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2012-05-10 15:47:59 -0500 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2012-05-10 15:52:15 -0500 |
| commit | 712a8c7f9c5c89071f7f3d87a8d4484921581cf6 (patch) | |
| tree | 956d2609e54436b72e02cda56918d55aae111f46 /openstackclient/compute/client.py | |
| parent | 9d224b3bf811c9c0b41246b7bfe937dd172ed95e (diff) | |
| download | python-openstackclient-712a8c7f9c5c89071f7f3d87a8d4484921581cf6.tar.gz | |
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
Diffstat (limited to 'openstackclient/compute/client.py')
| -rw-r--r-- | openstackclient/compute/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
