summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2015-02-17 00:07:21 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2015-02-17 17:26:07 +0100
commitbcf569ca082511fefa1552e623d1ce5095ef5399 (patch)
tree69b634894cc0795aadbfcc9d475b649b71fae5ce
parent64b458b380620f84843b1841b441745a0984946f (diff)
downloadbcfg2-bcf569ca082511fefa1552e623d1ce5095ef5399.tar.gz
bcfg2-bcf569ca082511fefa1552e623d1ce5095ef5399.tar.bz2
bcfg2-bcf569ca082511fefa1552e623d1ce5095ef5399.zip
Server/Plugins/Decisions: Monitor files for changes.
StructFile does not monitor the files by default and without the monitor we does not get the content. So we need to supply should_monitor=True to the StructFile.
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Decisions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Decisions.py b/src/lib/Bcfg2/Server/Plugins/Decisions.py
index b30a9acea..957426ec8 100644
--- a/src/lib/Bcfg2/Server/Plugins/Decisions.py
+++ b/src/lib/Bcfg2/Server/Plugins/Decisions.py
@@ -27,8 +27,10 @@ class Decisions(Bcfg2.Server.Plugin.Plugin,
def __init__(self, core):
Bcfg2.Server.Plugin.Plugin.__init__(self, core)
Bcfg2.Server.Plugin.Decision.__init__(self)
- self.whitelist = DecisionFile(os.path.join(self.data, "whitelist.xml"))
- self.blacklist = DecisionFile(os.path.join(self.data, "blacklist.xml"))
+ self.whitelist = DecisionFile(os.path.join(self.data, "whitelist.xml"),
+ should_monitor=True)
+ self.blacklist = DecisionFile(os.path.join(self.data, "blacklist.xml"),
+ should_monitor=True)
def GetDecisions(self, metadata, mode):
return getattr(self, mode).get_decisions(metadata)