diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-01-22 11:16:19 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-01-22 11:16:19 -0500 |
commit | 22029e107420ff21cf9f1811bf4bb6dc2aba1dde (patch) | |
tree | beec8e930b7204e64e01198e5d57b59f72ffef20 /src/lib/Bcfg2/Server/Lint/GroupNames.py | |
parent | 1b001ee4a4d5cacab04c1e99ad4cc4ce4ca93894 (diff) | |
download | bcfg2-22029e107420ff21cf9f1811bf4bb6dc2aba1dde.tar.gz bcfg2-22029e107420ff21cf9f1811bf4bb6dc2aba1dde.tar.bz2 bcfg2-22029e107420ff21cf9f1811bf4bb6dc2aba1dde.zip |
made genshi a requirement
Diffstat (limited to 'src/lib/Bcfg2/Server/Lint/GroupNames.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Lint/GroupNames.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/Bcfg2/Server/Lint/GroupNames.py b/src/lib/Bcfg2/Server/Lint/GroupNames.py index 52e42aa7b..4ce12eae7 100644 --- a/src/lib/Bcfg2/Server/Lint/GroupNames.py +++ b/src/lib/Bcfg2/Server/Lint/GroupNames.py @@ -3,11 +3,7 @@ import os import re import Bcfg2.Server.Lint -try: - from Bcfg2.Server.Plugins.Bundler import BundleTemplateFile - HAS_GENSHI = True -except ImportError: - HAS_GENSHI = False +from Bcfg2.Server.Plugins.Bundler import BundleTemplateFile class GroupNames(Bcfg2.Server.Lint.ServerPlugin): @@ -43,8 +39,7 @@ class GroupNames(Bcfg2.Server.Lint.ServerPlugin): """ Check groups used in the Bundler plugin for validity """ for bundle in self.core.plugins['Bundler'].entries.values(): if (self.HandlesFile(bundle.name) and - (not HAS_GENSHI or - not isinstance(bundle, BundleTemplateFile))): + not isinstance(bundle, BundleTemplateFile)): self.check_entries(bundle.xdata.xpath("//Group"), bundle.name) |