diff options
author | Tim Laszlo <Tim.Laszlo@magnetar.com> | 2014-06-10 12:17:56 -0500 |
---|---|---|
committer | Tim Laszlo <Tim.Laszlo@magnetar.com> | 2014-06-10 12:17:56 -0500 |
commit | 3d1b2b3a2d549a69e6a997b042020ff113c6f86b (patch) | |
tree | 4d902753ab4980a80fafbb830f8dec1db0efb6c7 /src/lib | |
parent | 1b41fa29dca6bce776a6056d0589c084eaa84e94 (diff) | |
download | bcfg2-3d1b2b3a2d549a69e6a997b042020ff113c6f86b.tar.gz bcfg2-3d1b2b3a2d549a69e6a997b042020ff113c6f86b.tar.bz2 bcfg2-3d1b2b3a2d549a69e6a997b042020ff113c6f86b.zip |
Setup reporting transport before starting threads
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Reporting.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Reporting.py b/src/lib/Bcfg2/Server/Plugins/Reporting.py index 8b8ada852..282de8247 100644 --- a/src/lib/Bcfg2/Server/Plugins/Reporting.py +++ b/src/lib/Bcfg2/Server/Plugins/Reporting.py @@ -54,7 +54,7 @@ class Reporting(Statistics, Threaded, PullSource): self.logger.error(msg) raise PluginInitError(msg) - def start_threads(self): + # This must be loaded here for bcfg2-admin try: self.transport = Bcfg2.Options.setup.reporting_transport() except TransportError: @@ -63,6 +63,10 @@ class Reporting(Statistics, Threaded, PullSource): if self.debug_flag: self.transport.set_debug(self.debug_flag) + def start_threads(self): + """Nothing to do here""" + pass + def set_debug(self, debug): rv = Statistics.set_debug(self, debug) if self.transport is not None: |