summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Server/Plugins/Cfg.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Cfg.py b/src/lib/Server/Plugins/Cfg.py
index e00c0a380..14ad47184 100644
--- a/src/lib/Server/Plugins/Cfg.py
+++ b/src/lib/Server/Plugins/Cfg.py
@@ -158,6 +158,13 @@ class ConfigFileEntry(object):
else:
logger.error("Unhandled Action %s for file %s" % (action, event.filename))
+ def Diagnose(self, metadata):
+ '''Print diagnostic information for entry'''
+ logger.info("Entries available:")
+ logger.info([bfile.name for bfile in self.fragments])
+ logger.info("Applicable entries:")
+ logger.info([bfile.name for bfile in self.fragments if bfile.applies(metadata) and not bfile.op])
+
def GetConfigFile(self, entry, metadata):
'''Fetch config file from repository'''
name = entry.attrib['name']