path: root/glustolibs-gluster/glustolibs
diff options
authorValerii Ponomarov <>2019-12-16 22:35:12 +0530
committerBala Konda Reddy M <>2019-12-17 09:58:27 +0000
commitc0fa7cfb52803a75af7faf374c155517f9d5e644 (patch)
tree7570ca8408a9c5aed70b5d79f817a5a9d70699b4 /glustolibs-gluster/glustolibs
parent099438eec88274839411f51cd214f6ff7fdac87c (diff)
Fix volume cleanup in 'gluster_base_class' module
One of the recent changes [1] broke volume cleanup logic which is located in base class. Fix it by proper handling of the cleanup function results where '0' return code is 'success' and not 'failure' as it was considered in that change. [1] 6cd137615aec29dade5b41975fcbdae06852cf53 Change-Id: I674493369202ceabc6983fae0b3834e3b0708bf1 Signed-off-by: Valerii Ponomarov <>
Diffstat (limited to 'glustolibs-gluster/glustolibs')
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/ b/glustolibs-gluster/glustolibs/gluster/
index 15d96748e..858741abd 100644
--- a/glustolibs-gluster/glustolibs/gluster/
+++ b/glustolibs-gluster/glustolibs/gluster/
@@ -414,7 +414,7 @@ class GlusterBaseClass(TestCase):
cmd = ('rm -rf %s' % mount_obj.mountpoint)
ret, _, err =
mount_obj.client_system, cmd, user=mount_obj.user)
- if not ret:
+ if ret:
"failed to delete the directory path used for "
"mounting %s: %s" % (mount_obj.mountpoint, err))