diff --git a/io/driver/module_unload_load.py b/io/driver/module_unload_load.py index d8a50fe57..bf19db22c 100755 --- a/io/driver/module_unload_load.py +++ b/io/driver/module_unload_load.py @@ -73,7 +73,7 @@ def flush_mpath(self, mdl): """ flush the multipath """ - cmd = "lsmod | grep -i ^%s" % mdl + cmd = "lsmod | grep -iw ^%s" % mdl for i in range(20): if process.getoutput(cmd).split(" ")[-1] == '0': return True