Browse Source

Fixes api usage example

Change-Id: Iaf2944c6789152c4ee17339e98cd2dfaccb127e4
changes/64/260364/1
liyingjun 6 years ago
parent
commit
55fec51afd
  1. 3
      README.rst

3
README.rst

@ -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()
[...]

Loading…
Cancel
Save