summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-05-14 10:01:24 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-05-14 10:01:29 -0400
commitab412f596313405e2a7f95c43acef21c93406f57 (patch)
tree21ab374abd98d81bf6a2816d43df7108d9f96aa8 /src
parentbe8dda800246b2056ec45c51b58fae85d6702c70 (diff)
downloadbcfg2-ab412f596313405e2a7f95c43acef21c93406f57.tar.gz
bcfg2-ab412f596313405e2a7f95c43acef21c93406f57.tar.bz2
bcfg2-ab412f596313405e2a7f95c43acef21c93406f57.zip
fixed bug in list_accept_choices in Cfg
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py b/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
index 6c7585993..5d55f3cbe 100644
--- a/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
+++ b/src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py
@@ -298,7 +298,7 @@ class CfgEntrySet(Bcfg2.Server.Plugin.EntrySet):
generators = [ent for ent in list(self.entries.values())
if (isinstance(ent, CfgGenerator) and
ent.specific.matches(metadata))]
- if not matching:
+ if not generators:
msg = "No base file found for %s" % entry.get('name')
logger.error(msg)
raise Bcfg2.Server.Plugin.PluginExecutionError(msg)