diff options
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugin')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugin/helpers.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/Bcfg2/Server/Plugin/helpers.py b/src/lib/Bcfg2/Server/Plugin/helpers.py index dfda30b39..c6cd006ac 100644 --- a/src/lib/Bcfg2/Server/Plugin/helpers.py +++ b/src/lib/Bcfg2/Server/Plugin/helpers.py @@ -155,13 +155,9 @@ class DatabaseBacked(Plugin): lock before writing, because it does not allow multiple threads to write.""" engine = \ - self.core.setup.cfp.get(Bcfg2.Options.DB_ENGINE.cf[0], - Bcfg2.Options.DB_ENGINE.cf[1], + self.core.setup.cfp.get(*Bcfg2.Options.DB_ENGINE.cf, default=Bcfg2.Options.DB_ENGINE.default) - if engine == 'sqlite3': - return True - else: - return False + return engine == 'sqlite3' @staticmethod def get_db_lock(func): |