Merge "The novaclient Python API doc keystoneauth example fixed"
This commit is contained in:
commit
d63800d5ec
@ -26,10 +26,10 @@ session API::
|
||||
>>> from keystoneauth1 import session
|
||||
>>> from novaclient import client
|
||||
>>> loader = loading.get_plugin_loader('password')
|
||||
>>> auth = loader.Password(auth_url=AUTH_URL,
|
||||
... username=USERNAME,
|
||||
... password=PASSWORD,
|
||||
... project_id=PROJECT_ID)
|
||||
>>> auth = loader.load_from_options(auth_url=AUTH_URL,
|
||||
... username=USERNAME,
|
||||
... password=PASSWORD,
|
||||
... project_id=PROJECT_ID)
|
||||
>>> sess = session.Session(auth=auth)
|
||||
>>> nova = client.Client(VERSION, session=sess)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user