diff options
Diffstat (limited to 'nova/utils.py')
-rw-r--r-- | nova/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/utils.py b/nova/utils.py index c1a12cade..7eb7aa662 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -918,7 +918,9 @@ def bool_from_str(val): try: return True if int(val) else False except ValueError: - return val.lower() == 'true' + return val.lower() == 'true' or \ + val.lower() == 'yes' or \ + val.lower() == 'y' def is_valid_ipv4(address): |