Fix doc session example

Update doc example to use keystoneclient and correct
v3 identity api parameters

Change-Id: I1ce288a1620c4aabd0aeaf78cb94ea13aa0657f8
This commit is contained in:
Ghe Rivero 2015-09-22 13:22:04 +02:00
parent 3915102963
commit a0e1d741d1

View File

@ -55,14 +55,16 @@ service and fetch a new one.
An example from keystoneauth::
>>> from keystoneauth1.auth.identity import v3
>>> from keystoneauth1.identity import v3
>>> from keystoneauth1 import session
>>> from keystoneauth1.v3 import client
>>> from keystoneclient.v3 import client
>>> auth = v3.Password(auth_url='https://my.keystone.com:5000/v2.0',
>>> auth = v3.Password(auth_url='https://my.keystone.com:5000/v3',
... username='myuser',
... password='mypassword',
... project_id='proj')
... project_name='proj',
... user_domain_id='default',
... project_domain_id='default')
>>> sess = session.Session(auth=auth,
... verify='/path/to/ca.cert')
>>> ks = client.Client(session=sess)