GitHub user ktdreyer opened a pull request:
https://github.com/apache/libcloud/pull/1216
openstack: add get_user method
## openstack: add get_user method
### Description
libcloud's OpenStack compute nodes have a `userId` value in `node.extra`.
Add a new `get_user()` method to the `OpenStackIdentityConnection` v3 class
to look up this user by the user ID value.
This allows callers to discover more information about the user that
created a node (for example).
### Status
done, ready for review
### Checklist (tick everything that applies)
- [ ] [Code
linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
(required, can be done after the PR checks)
- [ ] Documentation
- [ ] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
- [ ]
[ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
(required for bigger changes)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ktdreyer/libcloud openstack-get-user
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/1216.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1216
----
commit 6c93e3541c7437261f6d535e71c28d80f6fcc06a
Author: Ken Dreyer <ktdreyer@...>
Date: 2018-06-01T17:04:09Z
openstack: add get_user method
libcloud's OpenStack compute nodes have a "userId" value in node.extra.
Add a new get_user() method to the OpenStackIdentityConnection v3 class
to look up this user by the user ID value.
This allows callers to discover more information about the user that
created a node (for example).
----
---