aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMIZUTA Takeshi <mizuta.takeshi@fujitsu.com>2019-06-06 18:42:40 +0900
committerBryn M. Reeves <bmr@redhat.com>2019-10-01 14:24:43 +0100
commit55949fb88c492eec542c69157a8763ddb3555345 (patch)
tree9cc82a6df5e6ff5f204ec5c428e23272103a6520
parent699e5033d35eb7f8a945c3fcc6d520188b077a79 (diff)
downloadsos-55949fb88c492eec542c69157a8763ddb3555345.tar.gz
[plugins] Change forbidden_path from partial-match to exact-match
forbidden_path is evaluated on partial-match. However, it will be correct to evaluate on exact-match. Closes: #1692 Resolves: #1695 Signed-off-by: MIZUTA Takeshi <mizuta.takeshi@fujitsu.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index 56af847a..41f4f58c 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -64,7 +64,7 @@ def _mangle_command(command, name_max):
def _path_in_path_list(path, path_list):
- return any(p in path for p in path_list)
+ return any(p == path for p in path_list)
def _node_type(st):