Fixes api usage example

Change-Id: Iaf2944c6789152c4ee17339e98cd2dfaccb127e4
This commit is contained in:
liyingjun 2015-12-02 23:16:32 +08:00
parent ee4a44d3a2
commit 55fec51afd
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ To use with keystone as the authentication system::
>>> from keystoneclient import session
>>> from searchlightclient import client
>>> auth = generic.Password(auth_url=OS_AUTH_URL, username=OS_USERNAME, password=OS_PASSWORD, tenant_name=OS_TENANT_NAME)
>>> sc = client.Client('1', session=auth)
>>> keystone_session = session.Session(auth=auth)
>>> sc = client.Client('1', session=keystone_session)
>>> sc.resource_types.list()
[...]