[Openstack] python keystone v3 api coding question

Michael Hearn mrhearn at gmail.com
Mon Oct 13 18:23:34 UTC 2014


Guys

I have some python code that utilizes the v3 keystone api.

Part of it will remove a user/role from project and as long as there are no
other user/role assignments it'll nuke the project.
Question: Is there a cleaner way to check project membership other than
looping through a list of all users and passing the id (along with the
project id)  to the line:

*keystone.roles.list(user=userid, project=projectid)*

and checking the result of each pass?  (*keystone* represents the authN
object)

Cheers
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141013/4d34062d/attachment.html>


More information about the Openstack mailing list