summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xglustolibs-gluster/glustolibs/gluster/mount_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/mount_ops.py b/glustolibs-gluster/glustolibs/gluster/mount_ops.py
index cc63d05..c41ef85 100755
--- a/glustolibs-gluster/glustolibs/gluster/mount_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/mount_ops.py
@@ -261,7 +261,7 @@ def is_mounted(volname, mpoint, mserver, mclient, mtype, user='root'):
return True
return False
else:
- ret, _, _ = g.run(mclient, "mount | grep %s | grep %s | grep \"%s\""
+ ret, _, _ = g.run(mclient, "mount | egrep '%s | %s' | grep \"%s\""
% (volname, mpoint, mserver), user)
if ret == 0:
g.log.debug("Volume %s is mounted at %s:%s" % (volname, mclient,