summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugin.py
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-08-15 12:35:26 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2012-08-15 12:35:26 -0500
commitf5d3b73b36712944558f5529785b29621cb5cc11 (patch)
tree7b8efd457a1327f4b11e05cc5138b1af6b265bb6 /src/lib/Bcfg2/Server/Plugin.py
parentaf44641c5511d35889fa4c25ffda0d2aa8eb4be6 (diff)
downloadbcfg2-f5d3b73b36712944558f5529785b29621cb5cc11.tar.gz
bcfg2-f5d3b73b36712944558f5529785b29621cb5cc11.tar.bz2
bcfg2-f5d3b73b36712944558f5529785b29621cb5cc11.zip
Core: add database_available flag to allow plugins to see availability
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugin.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugin.py b/src/lib/Bcfg2/Server/Plugin.py
index 58e5dafeb..a9d8a2996 100644
--- a/src/lib/Bcfg2/Server/Plugin.py
+++ b/src/lib/Bcfg2/Server/Plugin.py
@@ -156,7 +156,7 @@ class DatabaseBacked(Plugin):
use_db = self.core.setup.cfp.getboolean(self.name.lower(),
"use_database",
default=False)
- if use_db and has_django:
+ if use_db and has_django and self.core.database_available:
return True
elif not use_db:
return False