summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-07-20 11:47:22 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-07-20 11:47:22 -0400
commit15de42173b0ebab86f04a933b525b57a625f5fa7 (patch)
tree2435666ca166f3b2830c1e440df7e8c59545489b /src
parent5ddac4899e16af3a59b591b2974f96c7c7df870c (diff)
downloadbcfg2-15de42173b0ebab86f04a933b525b57a625f5fa7.tar.gz
bcfg2-15de42173b0ebab86f04a933b525b57a625f5fa7.tar.bz2
bcfg2-15de42173b0ebab86f04a933b525b57a625f5fa7.zip
fixed handling of xincluded Metadata files
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Metadata.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Metadata.py b/src/lib/Bcfg2/Server/Plugins/Metadata.py
index ceeeb074c..acfc0d348 100644
--- a/src/lib/Bcfg2/Server/Plugins/Metadata.py
+++ b/src/lib/Bcfg2/Server/Plugins/Metadata.py
@@ -158,6 +158,11 @@ class XMLMetadataConfig(Bcfg2.Server.Plugin.XMLFileBacked):
self.logger.error('Failed to parse %s' % (included))
return {}
+ def add_monitor(self, fpath, fname):
+ self.extras.append(fname)
+ if self.fam and self.should_monitor:
+ self.fam.AddMonitor(fpath, self.metadata)
+
def HandleEvent(self, event):
"""Handle fam events"""
filename = os.path.basename(event.filename)