Credential backend doesn't use hints model
Bug #1353511 reported by
Alexey Miroshkin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Wishlist
|
Alexey Miroshkin |
Bug Description
The current implementation of credential.
..
if 'user_id' in filters:
query = query.filter_
The most part of backends implementation follows hints model, considering any filters as hints, so the particular backend implementation has an option to process it or ignore it. It makes sense to update credential backend, for example:
def list_credential
Changed in keystone: | |
assignee: | nobody → Alexey Miroshkin (amirosh) |
Changed in keystone: | |
status: | Confirmed → In Progress |
Changed in keystone: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | juno-3 → 2014.2 |
To post a comment you must log in.
Since the ec2 credentials code calls list_credentials() with user_id as a param, I'd recommend you create a separate method for use by bits of keystone that require list of credentials by user, while, as you say, support the standard hints mechanism in list_credentials().