diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-15 14:53:18 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-15 14:56:58 -0400 |
commit | a6b6871ecbc700229969f350b869bd19e785129d (patch) | |
tree | f694f842f448d9faf6209c0b4bcbb4362f2d7130 /src/lib/Bcfg2/Server/Lint/GroupNames.py | |
parent | be1fd87aa8a3d2900483326b93f4a2800ec716fc (diff) | |
download | bcfg2-a6b6871ecbc700229969f350b869bd19e785129d.tar.gz bcfg2-a6b6871ecbc700229969f350b869bd19e785129d.tar.bz2 bcfg2-a6b6871ecbc700229969f350b869bd19e785129d.zip |
Removed deprecated plugins BB, Svcmgr, SGenshi
Diffstat (limited to 'src/lib/Bcfg2/Server/Lint/GroupNames.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Lint/GroupNames.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/GroupNames.py b/src/lib/Bcfg2/Server/Lint/GroupNames.py index 069d5d2a5..5df98a30e 100644 --- a/src/lib/Bcfg2/Server/Lint/GroupNames.py +++ b/src/lib/Bcfg2/Server/Lint/GroupNames.py @@ -1,9 +1,11 @@ import os import re import Bcfg2.Server.Lint -from Bcfg2.Server.Plugins.Bundler import have_genshi -if have_genshi: - from Bcfg2.Server.Plugins.SGenshi import SGenshiTemplateFile +try: + from Bcfg2.Server.Plugins.Bundler import BundleTemplateFile + has_genshi = True +except ImportError: + has_genshi = False class GroupNames(Bcfg2.Server.Lint.ServerPlugin): """ ensure that all named groups are valid group names """ @@ -37,8 +39,8 @@ class GroupNames(Bcfg2.Server.Lint.ServerPlugin): """ check bundles for BoundPath entries with missing attrs """ for bundle in self.core.plugins['Bundler'].entries.values(): if (self.HandlesFile(bundle.name) and - (not have_genshi or - not isinstance(bundle, SGenshiTemplateFile))): + (not has_genshi or + not isinstance(bundle, BundleTemplateFile))): self.check_entries(bundle.xdata.xpath("//Group"), bundle.name) |