diff options
Diffstat (limited to 'src/lib/Bcfg2/Server/Core.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Core.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Core.py b/src/lib/Bcfg2/Server/Core.py index 796cd8bcc..85760aac3 100644 --- a/src/lib/Bcfg2/Server/Core.py +++ b/src/lib/Bcfg2/Server/Core.py @@ -93,11 +93,11 @@ class DefaultACL(Plugin, ClientACLs): rmi != 'get_statistics') or address[0] == "127.0.0.1") - # in core we frequently want to catch all exceptions, regardless of # type, so disable the pylint rule that catches that. # pylint: disable=W0702 + class Core(object): """ The server core is the container for all Bcfg2 server logic and modules. All core implementations must inherit from @@ -130,8 +130,8 @@ class Core(object): .. automethod:: _file_monitor_thread .. automethod:: _perflog_thread """ - global _CORE - _CORE = self + # Record the core as a module variable + Bcfg2.Server.core = self #: A :class:`logging.Logger` object for use by the core self.logger = logging.getLogger('bcfg2-server') |