diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-05-15 10:40:05 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-05-15 10:40:05 +0000 |
commit | 4dee8665b43cad974c4781d0ebbfff94e5101d35 (patch) | |
tree | 33f18a08270c865e9f599ce384f969319dbea35a /nova/utils.py | |
parent | 0cb809d0ff957b25101857198d02b24a8cee2b37 (diff) | |
parent | 1b9489fb0d556a2661c299cf67ed3d26ffcb2dce (diff) | |
download | nova-4dee8665b43cad974c4781d0ebbfff94e5101d35.tar.gz nova-4dee8665b43cad974c4781d0ebbfff94e5101d35.tar.xz nova-4dee8665b43cad974c4781d0ebbfff94e5101d35.zip |
Merge "Use Oslo's `bool_from_string`"
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: |