summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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)