summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Decisions.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/Decisions.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/Decisions.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Decisions.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Decisions.py b/src/lib/Bcfg2/Server/Plugins/Decisions.py
index 78b549c2c..90d9ecbe3 100644
--- a/src/lib/Bcfg2/Server/Plugins/Decisions.py
+++ b/src/lib/Bcfg2/Server/Plugins/Decisions.py
@@ -14,6 +14,8 @@ class DecisionFile(Bcfg2.Server.Plugin.SpecificData):
return [(x.get('type'), x.get('name')) for x in self.contents.xpath('.//Decision')]
class DecisionSet(Bcfg2.Server.Plugin.EntrySet):
+ basename_is_regex = True
+
def __init__(self, path, fam, encoding):
"""Container for decision specification files.
@@ -24,8 +26,7 @@ class DecisionSet(Bcfg2.Server.Plugin.EntrySet):
"""
Bcfg2.Server.Plugin.EntrySet.__init__(self, '(white|black)list', path,
- DecisionFile, encoding,
- is_regex=True)
+ DecisionFile, encoding)
try:
fam.AddMonitor(path, self)
except OSError: