diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-04 15:29:48 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-04 15:29:48 -0400 |
commit | b26d8ce8e72e3bf1c4466501d4e0f534059c6163 (patch) | |
tree | 37d7a554b6f595fd1258a93c77faa91d24c3ff96 | |
parent | 1cdc2738079edf932aa228cb24328d63274d3ff7 (diff) | |
download | bcfg2-b26d8ce8e72e3bf1c4466501d4e0f534059c6163.tar.gz bcfg2-b26d8ce8e72e3bf1c4466501d4e0f534059c6163.tar.bz2 bcfg2-b26d8ce8e72e3bf1c4466501d4e0f534059c6163.zip |
fixed bcfg2-lint checking of bundle names with . in them
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Bundler.py | 2 |
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", |