summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShwethaHP <spandura@redhat.com>2018-02-01 16:34:10 +0530
committerNigel Babu <nigelb@redhat.com>2018-02-01 15:57:14 +0000
commit422fb33ba827710ea9b567ee01cb68b7fecf0999 (patch)
tree6f1037624b38dfe135c985b58a487de9873a7c1b
parentfc03a0a6937ba681f4002176fdb283d1967241ad (diff)
Inject messages to client gluster logs only if the
mount_type is 'glusterfs' Change-Id: I00f0b5edfea0e09381d1404a0cfd16396a8fbde9 Signed-off-by: ShwethaHP <spandura@redhat.com>
-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