From 422fb33ba827710ea9b567ee01cb68b7fecf0999 Mon Sep 17 00:00:00 2001 From: ShwethaHP Date: Thu, 1 Feb 2018 16:34:10 +0530 Subject: Inject messages to client gluster logs only if the mount_type is 'glusterfs' Change-Id: I00f0b5edfea0e09381d1404a0cfd16396a8fbde9 Signed-off-by: ShwethaHP --- glustolibs-gluster/glustolibs/gluster/gluster_base_class.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'glustolibs-gluster') 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 -- cgit