diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-08-07 13:37:33 -0500 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2012-08-07 13:37:33 -0500 |
commit | 5b3ffd488a8b5f727a531a3b7c3ca419bb53d04e (patch) | |
tree | e816129405d12aad7069b7450b9121ed201ea23b /src/lib/Bcfg2/Server/Plugins | |
parent | cb928a1f548fe1e65933ecbb62220295802f160b (diff) | |
download | bcfg2-5b3ffd488a8b5f727a531a3b7c3ca419bb53d04e.tar.gz bcfg2-5b3ffd488a8b5f727a531a3b7c3ca419bb53d04e.tar.bz2 bcfg2-5b3ffd488a8b5f727a531a3b7c3ca419bb53d04e.zip |
Merge reporting configuration with main server configuration
Admin/Syncdb: Use SchemaUpdater
Move the schema update routines from reports to Bcfg2.Server
Move Reports.settings into Bcfg2.settings
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/DBStats.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/DBStats.py b/src/lib/Bcfg2/Server/Plugins/DBStats.py index ca948aabd..40ab11208 100644 --- a/src/lib/Bcfg2/Server/Plugins/DBStats.py +++ b/src/lib/Bcfg2/Server/Plugins/DBStats.py @@ -14,8 +14,6 @@ except ImportError: import Bcfg2.Server.Plugin from Bcfg2.Server.Reports.importscript import load_stat from Bcfg2.Server.Reports.reports.models import Client -import Bcfg2.Server.Reports.settings -from Bcfg2.Server.Reports.Updater import update_database, UpdaterError # for debugging output only logger = logging.getLogger('Bcfg2.Plugins.DBStats') @@ -33,14 +31,6 @@ class DBStats(Bcfg2.Server.Plugin.Plugin, self.core = core logger.debug("Searching for new models to " "add to the statistics database") - try: - update_database() - except UpdaterError: - raise Bcfg2.Server.Plugin.PluginInitError - except Exception: - inst = sys.exc_info()[1] - logger.debug(str(inst)) - logger.debug(str(type(inst))) def handle_statistic(self, metadata, data): newstats = data.find("Statistics") |