summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs/openshiftstoragelibs/baseclass.py
diff options
context:
space:
mode:
Diffstat (limited to 'openshift-storage-libs/openshiftstoragelibs/baseclass.py')
-rw-r--r--openshift-storage-libs/openshiftstoragelibs/baseclass.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/baseclass.py b/openshift-storage-libs/openshiftstoragelibs/baseclass.py
index 5553aa8d..80f89668 100644
--- a/openshift-storage-libs/openshiftstoragelibs/baseclass.py
+++ b/openshift-storage-libs/openshiftstoragelibs/baseclass.py
@@ -561,7 +561,7 @@ class BaseClass(unittest.TestCase):
except CloudProviderError as e:
# Try to power on VM, if it raises already powered On error
# then don't raise exception.
- if 'VM %s is already powered On' % vm_name not in e:
+ if 'VM %s is already powered On' % vm_name not in six.text_type(e):
raise
def power_off_vm(self, vm_name):