diff options
Diffstat (limited to 'src/lib/Server/Plugin.py')
-rw-r--r-- | src/lib/Server/Plugin.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index 1a6399d48..c09a37ed8 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -612,7 +612,6 @@ class StructFile(XMLFileBacked): def __init__(self, name): XMLFileBacked.__init__(self, name) - self.matches = {} def _match(self, item, metadata): """ recursive helper for Match() """ @@ -646,13 +645,10 @@ class StructFile(XMLFileBacked): def Match(self, metadata): """Return matching fragments of independent.""" - if metadata.hostname not in self.matches: - rv = [] - for child in self.entries: - rv.extend(self._match(child, metadata)) - logger.debug("File %s got %d match(es)" % (self.name, len(rv))) - self.matches[metadata.hostname] = rv - return self.matches[metadata.hostname] + rv = [] + for child in self.entries: + rv.extend(self._match(child, metadata)) + return rv class INode: |