diff options
Diffstat (limited to 'func/minion/modules/filetracker.py')
-rw-r--r-- | func/minion/modules/filetracker.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/func/minion/modules/filetracker.py b/func/minion/modules/filetracker.py index 398aefd..c9ed6ed 100644 --- a/func/minion/modules/filetracker.py +++ b/func/minion/modules/filetracker.py @@ -110,8 +110,9 @@ class FileTracker(func_module.FuncModule): filehash = self.__load() filenames = filehash.keys() for filename in filenames: - if fnmatch.fnmatch(filename, file_name_globs): - del filehash[filename] + for file_name_glob in file_name_globs: + if fnmatch.fnmatch(filename, file_name_glob): + del filehash[filename] self.__save(filehash) return 1 |