Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from keystoneauth1.identity import v2
- from keystoneauth1 import session
- from keystoneclient.v2_0 import client
- username = ''
- password = ''
- tenant_name = ''
- tenant_id = ''
- auth_url = ''
- auth = v2.Password(username=username, password=password, tenant_id=tenant_id,
- tenant_name=tenant_name, auth_url=auth_url)
- sess = session.Session(auth=auth)
- keystone = client.Client(version=2, session=sess, debug=True)
- print keystone.tenants.list()
Add Comment
Please, Sign In to add comment