summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Probes.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-22 17:09:01 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-22 17:09:01 -0400
commitb4f4d14e453aaec849e95268e6327fa07e5ff03e (patch)
tree77d2bec6a65e98ea7cce9082665c41cca57371c6 /src/lib/Bcfg2/Server/Plugins/Probes.py
parent80b4ca09bf4a815efd0726b96e3d032f76e1366d (diff)
downloadbcfg2-b4f4d14e453aaec849e95268e6327fa07e5ff03e.tar.gz
bcfg2-b4f4d14e453aaec849e95268e6327fa07e5ff03e.tar.bz2
bcfg2-b4f4d14e453aaec849e95268e6327fa07e5ff03e.zip
fixed handling of regex filename patterns in GroupSpool/EntrySet
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Probes.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Probes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Probes.py b/src/lib/Bcfg2/Server/Plugins/Probes.py
index cae06b659..7f300ebe0 100644
--- a/src/lib/Bcfg2/Server/Plugins/Probes.py
+++ b/src/lib/Bcfg2/Server/Plugins/Probes.py
@@ -114,12 +114,13 @@ class ProbeSet(Bcfg2.Server.Plugin.EntrySet):
ignore = re.compile("^(\.#.*|.*~|\\..*\\.(tmp|sw[px])|probed\\.xml)$")
probename = re.compile("(.*/)?(?P<basename>\S+?)(\.(?P<mode>(?:G\d\d)|H)_\S+)?$")
bangline = re.compile('^#!\s*(?P<interpreter>.*)$')
+ basename_is_regex = True
def __init__(self, path, fam, encoding, plugin_name):
self.plugin_name = plugin_name
Bcfg2.Server.Plugin.EntrySet.__init__(self, '[0-9A-Za-z_\-]+', path,
Bcfg2.Server.Plugin.SpecificData,
- encoding, is_regex=True)
+ encoding)
fam.AddMonitor(path, self)
def HandleEvent(self, event):