diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-08-15 12:35:26 -0500 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2012-08-15 12:35:26 -0500 |
commit | f5d3b73b36712944558f5529785b29621cb5cc11 (patch) | |
tree | 7b8efd457a1327f4b11e05cc5138b1af6b265bb6 /src/lib/Bcfg2/Server/Plugin.py | |
parent | af44641c5511d35889fa4c25ffda0d2aa8eb4be6 (diff) | |
download | bcfg2-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.py | 2 |
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 |