From 81e82b4e21056031dab53523275fe985d856aa32 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 17 Jan 2012 12:54:26 -0500 Subject: Since XMLSrc doesn't return anything from Cache(), don't bother looking at the results --- src/lib/Server/Plugin.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index 86f843aca..294d97853 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -826,11 +826,9 @@ class PrioDir(Plugin, Generator, XMLDirectoryBacked): def get_attrs(self, entry, metadata): """ get a list of attributes to add to the entry during the bind """ - for src in list(self.entries.values()): - cached = src.Cache(metadata) - if cached == False: - self.logger.error("Called before data loaded") - raise PluginExecutionError + for src in self.entries.values(): + src.Cache(metadata) + matching = [src for src in list(self.entries.values()) if (src.cache and entry.tag in src.cache[1] and -- cgit v1.2.3-1-g7c22