diff options
Diffstat (limited to 'nova/utils.py')
-rw-r--r-- | nova/utils.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/nova/utils.py b/nova/utils.py index 3af79a6df..3020781c8 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -597,19 +597,6 @@ def parse_server_string(server_str): return ('', '') -def bool_from_str(val): - """Convert a string representation of a bool into a bool value.""" - - if not val: - return False - try: - return True if int(val) else False - except ValueError: - return val.lower() == 'true' or \ - val.lower() == 'yes' or \ - val.lower() == 'y' - - def is_int_like(val): """Check if a value looks like an int.""" try: |