summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Bundler.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-04 15:29:48 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-10-04 15:29:48 -0400
commitb26d8ce8e72e3bf1c4466501d4e0f534059c6163 (patch)
tree37d7a554b6f595fd1258a93c77faa91d24c3ff96 /src/lib/Bcfg2/Server/Plugins/Bundler.py
parent1cdc2738079edf932aa228cb24328d63274d3ff7 (diff)
downloadbcfg2-b26d8ce8e72e3bf1c4466501d4e0f534059c6163.tar.gz
bcfg2-b26d8ce8e72e3bf1c4466501d4e0f534059c6163.tar.bz2
bcfg2-b26d8ce8e72e3bf1c4466501d4e0f534059c6163.zip
fixed bcfg2-lint checking of bundle names with . in them
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Bundler.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Bundler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Bundler.py b/src/lib/Bcfg2/Server/Plugins/Bundler.py
index 59e85f198..3bd6b7910 100644
--- a/src/lib/Bcfg2/Server/Plugins/Bundler.py
+++ b/src/lib/Bcfg2/Server/Plugins/Bundler.py
@@ -189,7 +189,7 @@ class BundlerLint(Bcfg2.Server.Lint.ServerPlugin):
# genshi template
xdata = lxml.etree.parse(bundle.template.filepath).getroot()
- fname = bundle.name.split('Bundler/')[1].split('.')[0]
+ fname = os.path.splitext(os.path.basename(bundle.name))[0]
bname = xdata.get('name')
if fname != bname:
self.LintError("inconsistent-bundle-name",