summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r--src/lib/Server/Plugins/Packages.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py
index f3d958510..c8579988c 100644
--- a/src/lib/Server/Plugins/Packages.py
+++ b/src/lib/Server/Plugins/Packages.py
@@ -466,6 +466,9 @@ class Packages(Bcfg2.Server.Plugin.Plugin,
sources = self.get_matching_sources(meta)
# reverse list so that priorities correspond to file order
sources.reverse()
+ if len(sources) == 0:
+ self.logger.error("Packages: No matching sources for client %s; improper group memberships?" % (meta.hostname))
+ return set(), set(), 'failed'
ptype = set([s.ptype for s in sources])
if len(ptype) < 1:
return set(), set(), 'failed'