summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorAndrey Kurilin <akurilin@mirantis.com>2015-02-03 02:32:58 +0200
committerAndrey Kurilin <akurilin@mirantis.com>2015-02-04 17:40:46 +0200
commit0a60aae852d2688861d0b4ba097a1a00529f0611 (patch)
treeb08ba9344b88e38767f54c5d5c7366c2ef306608 /README.rst
parent4e76f9590b49c925703cbbf42d1e232725465eff (diff)
downloadpython-novaclient-0a60aae852d2688861d0b4ba097a1a00529f0611.tar.gz
Rename v1_1 to v2
Module novaclient.v1_1 is used as implementation of V1.1, V2 and V3. Since future development(microversioning) will be done across V2, implementation should be done in appropriate module(to prevent misleading). Despite the fact that implementation for all versions are equal, discover method for contrib path worked only for v1.1. This patch fixes this bug and modifies shell tests to check all versions. Change-Id: Ib6798f4dfe177586302141f522dc593560ce6a5b
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index 4b8b8bb2..a7edf870 100644
--- a/README.rst
+++ b/README.rst
@@ -46,7 +46,7 @@ and the version of the API with ``--os-compute-api-version``. Or set them as
an environment variables as well::
export OS_AUTH_URL=http://example.com:8774/v1.1/
- export OS_COMPUTE_API_VERSION=1.1
+ export OS_COMPUTE_API_VERSION=2
If you are using Keystone, you need to set the OS_AUTH_URL to the keystone
endpoint::
@@ -69,7 +69,7 @@ There's also a complete Python API, but it has not yet been documented.
To use with nova, with keystone as the authentication system::
# use v2.0 auth with http://example.com:5000/v2.0/")
- >>> from novaclient.v1_1 import client
+ >>> from novaclient.v2 import client
>>> nt = client.Client(USER, PASS, TENANT, AUTH_URL, service_type="compute")
>>> nt.flavors.list()
[...]