diff options
author | Samuel Pilla <sp516w@att.com> | 2017-08-18 16:16:12 -0500 |
---|---|---|
committer | Gage Hugo <gagehugo@gmail.com> | 2017-12-20 13:51:08 -0600 |
commit | 9cfbf96620a8d01605c9eb553ad72b76068b79b4 (patch) | |
tree | 0864a967dd880f773998bf57c44fe4e05ed44dee /keystoneclient/base.py | |
parent | 789301a388ba7e190de21e54300b0bb8e0ed6d18 (diff) | |
download | python-keystoneclient-9cfbf96620a8d01605c9eb553ad72b76068b79b4.tar.gz |
Add project tags to keystoneclient
Adds the client functionality for the following project tag calls:
- Create a project tag on a project
- Check if a project tag exists on a project
- List project tags on a project
- Modify project tags on a project
- Delete a specific project tag on a project
- Delete all project tags on a project
Co-Authored-By: Jess Egler <jess.egler@gmail.com>
Co-Authored-By: Rohan Arora <ra271w@att.com>
Co-Authored-By: Tin Lam <tin@irrational.io>
Partially Implements: bp project-tags
Change-Id: I486b2969ae0aa2638842d842fb8b0955cc086d25
Diffstat (limited to 'keystoneclient/base.py')
-rw-r--r-- | keystoneclient/base.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/keystoneclient/base.py b/keystoneclient/base.py index 80e09a0..c466b1b 100644 --- a/keystoneclient/base.py +++ b/keystoneclient/base.py @@ -356,6 +356,13 @@ class CrudManager(Manager): if params is None: return '' else: + # NOTE(spilla) Since the manager cannot take in a hyphen as a + # key in the kwarg, it is passed in with a _. This needs to be + # replaced with a proper hyphen for the URL to work properly. + tags_params = ('tags_any', 'not_tags', 'not_tags_any') + for tag_param in tags_params: + if tag_param in params: + params[tag_param.replace('_', '-')] = params.pop(tag_param) return '?%s' % urllib.parse.urlencode(params, doseq=True) def build_key_only_query(self, params_list): |