summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Core.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-10-29 15:38:11 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-10-29 15:38:11 -0400
commit2161b4be08f2b295f68e2f7c0f9c791919542a39 (patch)
tree8581814969a3609a7acc94187f587426c8abf443 /src/lib/Bcfg2/Server/Core.py
parent6dd9756f7a87d5e875f5db02f306c7b906902a96 (diff)
downloadbcfg2-2161b4be08f2b295f68e2f7c0f9c791919542a39.tar.gz
bcfg2-2161b4be08f2b295f68e2f7c0f9c791919542a39.tar.bz2
bcfg2-2161b4be08f2b295f68e2f7c0f9c791919542a39.zip
Core: Make core object available at the module level
Diffstat (limited to 'src/lib/Bcfg2/Server/Core.py')
-rw-r--r--src/lib/Bcfg2/Server/Core.py6
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')