Changing the approach of getting users' email address in the OpenStackBckend method.
Using keystone to get user's email address instead.
Discussion
I probably not refactor this in the best way. Still sending out the PR so we can discuss it. Maybe should have a function to retrieve user's email addresses. Also, at least in Newton, OpenStack allows to create a user without providing the email address. So the email address would be blank. I don't have a good plan to take care of that case yet.
Description
Changing the approach of getting users' email address in the OpenStackBckend method. Using keystone to get user's email address instead.
Discussion
I probably not refactor this in the best way. Still sending out the PR so we can discuss it. Maybe should have a function to retrieve user's email addresses. Also, at least in Newton, OpenStack allows to create a user without providing the email address. So the email address would be blank. I don't have a good plan to take care of that case yet.
Checklist before merging: