summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/DBStats.py
blob: e6ef50fa14df52d13f54b3b3304eabd5c7932468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
""" DBstats provides a database-backed statistics handler """

import Bcfg2.Server.Plugin


class DBStats(Bcfg2.Server.Plugin.Plugin):
    """ DBstats provides a database-backed statistics handler """

    def __init__(self, core, datastore):
        Bcfg2.Server.Plugin.Plugin.__init__(self, core, datastore)
        self.logger.error("DBStats has been replaced with Reporting")
        self.logger.error("DBStats: Be sure to migrate your data "
                          "before running the report collector")
        raise Bcfg2.Server.Plugin.PluginInitError