diff options
| author | llg8212 <lilinguo@huawei.com> | 2014-01-22 11:51:58 +0800 |
|---|---|---|
| committer | llg8212 <lilinguo@huawei.com> | 2014-01-22 14:50:57 +0800 |
| commit | a7a55cb652bdc64954b11aa7d55f456d44622b5e (patch) | |
| tree | 455dcac492b2e5612cf327d10b4e99906182841c /keystoneclient/utils.py | |
| parent | 19d0396224b5a83ef9a22b42e8292e2921136e14 (diff) | |
| download | python-keystoneclient-a7a55cb652bdc64954b11aa7d55f456d44622b5e.tar.gz | |
Using common method 'bool_from_string' from oslo strutils
Using common method 'bool_from_string' from oslo strutils to replace
utils.string_to_bool.
partially implements blueprint common-client-library-2
Change-Id: I22ee9c5a4b48e85606e033ab87d4adb72b665ee6
Diffstat (limited to 'keystoneclient/utils.py')
| -rw-r--r-- | keystoneclient/utils.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py index b2e371b..26ffe8f 100644 --- a/keystoneclient/utils.py +++ b/keystoneclient/utils.py @@ -137,13 +137,6 @@ def isunauthenticated(f): return getattr(f, 'unauthenticated', False) -def string_to_bool(arg): - if isinstance(arg, bool): - return arg - - return arg.strip().lower() in ('t', 'true', 'yes', '1') - - def hash_signed_token(signed_text): hash_ = hashlib.md5() hash_.update(signed_text) |
