From f5d3b73b36712944558f5529785b29621cb5cc11 Mon Sep 17 00:00:00 2001 From: Tim Laszlo Date: Wed, 15 Aug 2012 12:35:26 -0500 Subject: Core: add database_available flag to allow plugins to see availability --- src/lib/Bcfg2/Server/Plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/Bcfg2/Server/Plugin.py') 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 -- cgit v1.2.3-1-g7c22