Document current_user_id in a release note

Also fix the connect_as docstring.

Change-Id: I53203b892bcf03d540d6e551ec9615439ad5c4c9
This commit is contained in:
Monty Taylor 2017-11-15 08:43:06 -06:00
parent 1e0d1b370f
commit eeea77d797
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
---
features:
- Added a new property, 'current_user_id' which contains
the id of the currently authenticated user from the token.

View File

@ -396,7 +396,7 @@ class OpenStackCloud(
cloud = shade.openstack_cloud(cloud='example')
# Work normally
servers = cloud.list_servers()
cloud2 = cloud.connect_as(dict(name='different-project'))
cloud2 = cloud.connect_as_project('different-project')
# Work in different-project
servers = cloud2.list_servers()