diff options
author | Samuel Pilla <sp516w@att.com> | 2017-01-20 09:43:14 -0600 |
---|---|---|
committer | Tin Lam <tinlam@gmail.com> | 2017-01-24 19:43:53 -0600 |
commit | ef6ffa651616476d4207549b3121bfde096e16cf (patch) | |
tree | 6fe982ceb43e558da0dcdbb645da7458867326c4 /releasenotes | |
parent | dcb719d0e51afa0253c144136b41f0e390c48c4c (diff) | |
download | python-keystoneclient-ef6ffa651616476d4207549b3121bfde096e16cf.tar.gz |
Allow Multiple Filters of the Same Key
Before, the way filters were passed in would not allow filtering
on the same key.
For example:
keystone.users.list(name__contains='test', name__contains='user')
This fails because of how kwargs handles key/value pairs.
This patch allows using multiple values for the same filter.
Example:
keystone.users.list(name__contains=['test', 'user'])
Specifying the only one filter value is still functional as expected.
Co-Authored-By: Jeffrey Augustine <ja224e@att.com>
Partially-Implements: bp pci-dss-query-password-expired-users
Change-Id: I89cecf7e18974e7860ba0925840d6264168eabcb
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/bp-pci-dss-query-password-expired-users-b0c4b1bbdcf33f16.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/releasenotes/notes/bp-pci-dss-query-password-expired-users-b0c4b1bbdcf33f16.yaml b/releasenotes/notes/bp-pci-dss-query-password-expired-users-b0c4b1bbdcf33f16.yaml new file mode 100644 index 0000000..2699a7f --- /dev/null +++ b/releasenotes/notes/bp-pci-dss-query-password-expired-users-b0c4b1bbdcf33f16.yaml @@ -0,0 +1,6 @@ +--- +features: + - | + Added ability to filter on multiple values with the same parameter key. + For example, we can now filter on user names that contain both ``test`` and + ``user`` using ``keystone.users.list(name__contains=['test', 'user'])``. |