summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-24 13:24:51 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-24 13:24:51 -0400
commit56533986566927a386e05ccddcd513857f6711ee (patch)
treedeeb708993e18b25b6a4db08678dd4839c19201b /src
parent90ba37c19ae3bc221b4ca0319679cf1520894b2d (diff)
downloadbcfg2-56533986566927a386e05ccddcd513857f6711ee.tar.gz
bcfg2-56533986566927a386e05ccddcd513857f6711ee.tar.bz2
bcfg2-56533986566927a386e05ccddcd513857f6711ee.zip
fixed handling of SEModules with multiple specific modules
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/SEModules.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/SEModules.py b/src/lib/Bcfg2/Server/Plugins/SEModules.py
index 0d75bb48f..62b3fb10a 100644
--- a/src/lib/Bcfg2/Server/Plugins/SEModules.py
+++ b/src/lib/Bcfg2/Server/Plugins/SEModules.py
@@ -15,7 +15,6 @@ class SEModules(Bcfg2.Server.Plugin.GroupSpool):
""" Handle SELinux 'module' entries """
name = 'SEModules'
__author__ = 'chris.a.st.pierre@gmail.com'
- es_cls = Bcfg2.Server.Plugin.EntrySet
es_child_cls = SEModuleData
entry_type = 'SELinux'
experimental = True
@@ -41,5 +40,6 @@ class SEModules(Bcfg2.Server.Plugin.GroupSpool):
return self.Entries[entry.tag][entry.get("name")](entry, metadata)
def add_entry(self, event):
- self.filename_pattern = os.path.basename(event.filename)
+ self.filename_pattern = \
+ os.path.basename(os.path.dirname(self.event_path(event)))
Bcfg2.Server.Plugin.GroupSpool.add_entry(self, event)