This commit is contained in:
Edwin Eefting
2021-12-19 18:16:54 +01:00
parent be2474bb1c
commit 7b4a986f13
2 changed files with 49 additions and 1 deletions

View File

@ -158,7 +158,8 @@ class ZfsDataset:
# our path starts with one of the excluded paths?
for exclude_path in exclude_paths:
if self.name.startswith(exclude_path):
# if self.name.startswith(exclude_path):
if (self.name + "/").startswith(exclude_path + "/"):
# too noisy for verbose
self.debug("Excluded (path in exclude list)")
return False