summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNitin Goyal <nigoyal@redhat.com>2019-11-22 17:33:53 +0530
committervponomar <vponomar@redhat.com>2019-11-22 12:24:28 +0000
commit1ed3d8401476b56e1f84cfdb9eb849f07cc80af8 (patch)
treec6657c24837911202bdc27fa9684f41ab4ea2d20
parent3fb8e567d71452117f4993c0355174dde9df3b91 (diff)
Fix library 'power_off_gluster_node_vm'
Fix the library via adding cleanup power_on_vm which was missed during library creation. Change-Id: I6b2fe78378cac61cee5d630562c0ba7201bbaa4e
-rw-r--r--openshift-storage-libs/openshiftstoragelibs/baseclass.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/openshift-storage-libs/openshiftstoragelibs/baseclass.py b/openshift-storage-libs/openshiftstoragelibs/baseclass.py
index 4ca48f0..5553aa8 100644
--- a/openshift-storage-libs/openshiftstoragelibs/baseclass.py
+++ b/openshift-storage-libs/openshiftstoragelibs/baseclass.py
@@ -611,6 +611,7 @@ class BaseClass(unittest.TestCase):
timeout=timeout, wait_step=wait_step)
# Power off vm
+ self.addCleanup(self.power_on_vm, vm_name)
self.power_off_vm(vm_name)