Lowercase boolean configs before comparison.
Lowercase boolean config params before comparison.
Fixes issues where 'use_ssl=False' doesn't actually work...
Change-Id: I865e6b3c84341f0d05248f63fe9dec59ec325d74
diff --git a/tempest/config.py b/tempest/config.py
index 8e62c55..dc93910 100644
--- a/tempest/config.py
+++ b/tempest/config.py
@@ -52,7 +52,7 @@
@property
def use_ssl(self):
"""Specifies if we are using https."""
- return self.get("use_ssl", 'false') != 'false'
+ return self.get("use_ssl", 'false').lower() != 'false'
@property
def username(self):
@@ -109,12 +109,12 @@
@property
def resize_available(self):
"""Does the test environment support resizing?"""
- return self.get("resize_available", 'false') != 'false'
+ return self.get("resize_available", 'false').lower() != 'false'
@property
def create_image_enabled(self):
"""Does the test environment support snapshots?"""
- return self.get("create_image_enabled", 'false') != 'false'
+ return self.get("create_image_enabled", 'false').lower() != 'false'
@property
def release_name(self):