summaryrefslogtreecommitdiffstats
path: root/openshift-storage-libs
diff options
context:
space:
mode:
authoradityaramteke <adityaramteke05icr@gmail.com>2019-09-25 12:30:43 +0530
committeradityaramteke <adityaramteke05icr@gmail.com>2019-11-27 11:37:11 +0530
commit985cc6bf7bfa25ee8aba0735770583a89a7f9319 (patch)
tree404d9c8453edf45569ef0f268cf4b92336b939af /openshift-storage-libs
parentf51ac495904dcd43649dbdc9a3997593aa8f9164 (diff)
Add test for creation of PVC when one node down
The purpose of this test case is to confirm that provisioning succeeds if at least 3 nodes are UP in a CNS cluster with nodes >3. Change-Id: I7fc1f851114d921f65e819db23502776526e6827
Diffstat (limited to 'openshift-storage-libs')
-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 5553aa8..80f8966 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):