Document current_user_id in a release note
Also fix the connect_as docstring. Change-Id: I53203b892bcf03d540d6e551ec9615439ad5c4c9
This commit is contained in:
parent
1e0d1b370f
commit
eeea77d797
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Added a new property, 'current_user_id' which contains
|
||||||
|
the id of the currently authenticated user from the token.
|
@ -396,7 +396,7 @@ class OpenStackCloud(
|
|||||||
cloud = shade.openstack_cloud(cloud='example')
|
cloud = shade.openstack_cloud(cloud='example')
|
||||||
# Work normally
|
# Work normally
|
||||||
servers = cloud.list_servers()
|
servers = cloud.list_servers()
|
||||||
cloud2 = cloud.connect_as(dict(name='different-project'))
|
cloud2 = cloud.connect_as_project('different-project')
|
||||||
# Work in different-project
|
# Work in different-project
|
||||||
servers = cloud2.list_servers()
|
servers = cloud2.list_servers()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user