summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glustolibs-gluster/glustolibs/gluster/gluster_base_class.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py
index 1b6e02b0d..14cbc5a38 100644
--- a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py
+++ b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py
@@ -104,11 +104,13 @@ class GlusterBaseClass(unittest.TestCase):
if not ret:
_rc = False
- ret = inject_msg_in_logs(cls.clients, log_msg=msg,
- list_of_dirs=cls.client_gluster_logs_dirs,
- list_of_files=cls.client_gluster_logs_files)
- if not ret:
- _rc = False
+ if "glusterfs" in cls.mount_type:
+ ret = inject_msg_in_logs(
+ cls.clients, log_msg=msg,
+ list_of_dirs=cls.client_gluster_logs_dirs,
+ list_of_files=cls.client_gluster_logs_files)
+ if not ret:
+ _rc = False
return _rc
@classmethod