From 8bbfc436fa18800e4f9c53cc2bbabcbb5097609d Mon Sep 17 00:00:00 2001 From: llg8212 Date: Thu, 23 Jan 2014 10:20:19 +0800 Subject: [PATCH] Remove unused method 'string_to_bool' from utils The method 'string_to_bool' in utils is not used. Furthermore, if we need this method in the future, we should use 'bool_from_string' from oslo cliutils to replace it. partially implements blueprint common-client-library-2 Change-Id: I82af6e358d7082222fe7a09c8f27351189a82fbc --- ironicclient/common/utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ironicclient/common/utils.py b/ironicclient/common/utils.py index 15eb122da..1bca1de3b 100644 --- a/ironicclient/common/utils.py +++ b/ironicclient/common/utils.py @@ -150,10 +150,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