diff options
author | Arthy Loganathan <aloganat@redhat.com> | 2017-06-12 18:36:51 +0530 |
---|---|---|
committer | Jonathan Holloway <jholloway@redhat.com> | 2017-06-20 15:53:32 +0000 |
commit | 5bfa198c2267b4180b54976b5ff42edc84c58cd9 (patch) | |
tree | ed5240a7a275acb84260dddb9bb834c583258b16 /glustolibs-gluster/glustolibs/gluster/volume_libs.py | |
parent | 1136c856abf26cf97b106d2bef7717f441066d04 (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/volume_libs.py')
-rw-r--r-- | glustolibs-gluster/glustolibs/gluster/volume_libs.py | 2 |
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 a2ac55064..8a7806b04 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 |