summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster
diff options
context:
space:
mode:
authorArthy Loganathan <aloganat@redhat.com>2017-06-12 18:36:51 +0530
committerJonathan Holloway <jholloway@redhat.com>2017-06-20 15:53:32 +0000
commit5bfa198c2267b4180b54976b5ff42edc84c58cd9 (patch)
treeed5240a7a275acb84260dddb9bb834c583258b16 /glustolibs-gluster/glustolibs/gluster
parent1136c856abf26cf97b106d2bef7717f441066d04 (diff)
Fix to match only the given volname in showmount
Change-Id: I41290d79f016e590a936d031665259f61aa1474a Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/volume_libs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/volume_libs.py b/glustolibs-gluster/glustolibs/gluster/volume_libs.py
index a2ac550..8a7806b 100644
--- a/glustolibs-gluster/glustolibs/gluster/volume_libs.py
+++ b/glustolibs-gluster/glustolibs/gluster/volume_libs.py
@@ -423,7 +423,7 @@ def is_volume_exported(mnode, volname, share_type):
cmd = "showmount -e localhost"
_, _, _ = g.run(mnode, cmd)
- cmd = "showmount -e localhost | grep %s" % volname
+ cmd = "showmount -e localhost | grep -w %s" % volname
ret, _, _ = g.run(mnode, cmd)
if ret != 0:
return False