diff options
| author | llg8212 <lilinguo@huawei.com> | 2014-01-22 11:22:24 +0800 |
|---|---|---|
| committer | llg8212 <lilinguo@huawei.com> | 2014-01-22 11:30:34 +0800 |
| commit | 08eca91c65733edbfa4b76eadebbedaac1cb1573 (patch) | |
| tree | cd2e82608b52d53d2e55e0ed28d19cb11231f2e4 /ceilometerclient/common/utils.py | |
| parent | 5ad00a7c91f7857c4b3b37d4c2038d9519b48cf8 (diff) | |
| download | python-ceilometerclient-08eca91c65733edbfa4b76eadebbedaac1cb1573.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: I101eb89174ac229aa1025bc4aea8b1c0c5594705
Diffstat (limited to 'ceilometerclient/common/utils.py')
| -rw-r--r-- | ceilometerclient/common/utils.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ceilometerclient/common/utils.py b/ceilometerclient/common/utils.py index 4f532e5..3d7b0cd 100644 --- a/ceilometerclient/common/utils.py +++ b/ceilometerclient/common/utils.py @@ -133,10 +133,6 @@ def find_resource(manager, name_or_id): raise exc.CommandError(msg) -def string_to_bool(arg): - return arg.strip().lower() in ('t', 'true', 'yes', '1') - - def env(*vars, **kwargs): """Search for the first defined of possibly many env vars |
