diff options
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,9 +25,9 @@ Python API By way of a quick-start:: - # use v2.0 auth with http://example.com:5000/v2.0/") + # use v2.0 auth with http://example.com:5000/v2.0") >>> from keystoneclient.v2_0 import client - >>> keystone = client.Client(USERNAME, API_KEY, PROJECT_ID) + >>> keystone = client.Client(username=USERNAME, password=API_KEY, project_id=TENANT, auth_url=KEYSTONE_URL) >>> keystone.tenants.list() >>> tenant = keystone.tenants.create(name="test", descrption="My new tenant!", enabled=True) >>> tenant.delete() |