Fixe example code in Using Sessions page
* Changes the auth_url to use /v3 * Adds the user_domain_id argument Co-Authored-By: Rodrigo Duarte Sousa <rodrigods@lsd.ufcg.edu.br> Closes-bug: 1428309 Change-Id: I8471d9fbbd4d14cbb60395f90e8e61b9ed9f7d3b
This commit is contained in:

committed by
Rodrigo Duarte Sousa

parent
81ff5a277a
commit
416a3c1c4f
@@ -59,10 +59,11 @@ An example from keystoneclient::
|
||||
>>> from keystoneclient import session
|
||||
>>> 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_id='proj',
|
||||
... user_domain_id='domain')
|
||||
>>> sess = session.Session(auth=auth,
|
||||
... verify='/path/to/ca.cert')
|
||||
>>> ks = client.Client(session=sess)
|
||||
|
Reference in New Issue
Block a user