Merge "Fix client usage in api example"

This commit is contained in:
Jenkins 2015-03-12 15:17:55 +00:00 committed by Gerrit Code Review
commit 1940093621
1 changed files with 3 additions and 3 deletions

View File

@ -11,8 +11,8 @@ Usage
First create a client instance with your credentials::
>>> from novaclient.client import Client
>>> nova = Client(VERSION, USERNAME, PASSWORD, PROJECT_ID, AUTH_URL)
>>> from novaclient import client
>>> nova = client.Client(VERSION, USERNAME, PASSWORD, PROJECT_ID, AUTH_URL)
Here ``VERSION`` can be: ``1.1``, ``2`` and ``3``.
@ -21,7 +21,7 @@ session API::
>>> from keystoneclient.auth.identity import v2
>>> from keystoneclient import session
>>> from novaclient.client import Client
>>> from novaclient import client
>>> auth = v2.Password(auth_url=AUTH_URL,
username=USERNAME,
password=PASSWORD,