summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugin.py')
-rw-r--r--src/lib/Server/Plugin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index 6c6d5aab3..712f12ea9 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -63,6 +63,7 @@ class Plugin(object):
self.core = core
self.data = "%s/%s" % (datastore, self.name)
self.logger = logging.getLogger('Bcfg2.Plugins.%s' % (self.name))
+ self.running = True
@staticmethod
def make_path(path):
@@ -79,6 +80,9 @@ class Plugin(object):
path = "%s/%s" % (repo, cls.name)
cls.make_path(path)
+ def shutdown(self):
+ self.running = False
+
class Generator(object):
'''Generator plugins contribute to literal client configurations'''
def HandlesEntry(self, entry, metadata):