summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugin/helpers.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-11-25 12:55:50 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-11-25 12:55:50 -0500
commit1c7488e85200e50429b1248d36a6815bedc49f02 (patch)
treec8d32186a4bcc3f436df5a2dee536de934085fe7 /src/lib/Bcfg2/Server/Plugin/helpers.py
parent16b4744544ab140c4ab9bc733a7dfa76cf4e578c (diff)
downloadbcfg2-1c7488e85200e50429b1248d36a6815bedc49f02.tar.gz
bcfg2-1c7488e85200e50429b1248d36a6815bedc49f02.tar.bz2
bcfg2-1c7488e85200e50429b1248d36a6815bedc49f02.zip
testsuite: fixed unit tests for database fixes
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugin/helpers.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugin/helpers.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/Bcfg2/Server/Plugin/helpers.py b/src/lib/Bcfg2/Server/Plugin/helpers.py
index f39609a5b..be9c9e8ae 100644
--- a/src/lib/Bcfg2/Server/Plugin/helpers.py
+++ b/src/lib/Bcfg2/Server/Plugin/helpers.py
@@ -137,11 +137,12 @@ class DatabaseBacked(Plugin):
self.option,
default=False)
if use_db and not HAS_DJANGO:
- raise PluginInitError("%s is True but Django not found" %
- self.option)
+ raise PluginInitError("%s.%s is True but Django not found" %
+ (self.section, self.option))
elif use_db and not self.core.database_available:
- raise PluginInitError("%s is True but the database is unavailable "
- "due to prior errors" % self.option)
+ raise PluginInitError("%s.%s is True but the database is "
+ "unavailable due to prior errors" %
+ (self.section, self.option))
def _section(self):
""" The section to look in for :attr:`DatabaseBacked.option`