summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugin
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2013-06-28 18:29:47 -0500
committerSol Jerome <sol.jerome@gmail.com>2013-06-28 18:29:47 -0500
commit9d701f9e122714382c5a399b3c069db8c034894f (patch)
tree714082bc452dddf10b2dc5302f6c4f91c3e94855 /src/lib/Bcfg2/Server/Plugin
parent5a181e4dd1a0e8e44907a9e2725c77ab513a400d (diff)
downloadbcfg2-9d701f9e122714382c5a399b3c069db8c034894f.tar.gz
bcfg2-9d701f9e122714382c5a399b3c069db8c034894f.tar.bz2
bcfg2-9d701f9e122714382c5a399b3c069db8c034894f.zip
Plugin/helpers: Remove duplicate _include_tests
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugin')
-rw-r--r--src/lib/Bcfg2/Server/Plugin/helpers.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/Bcfg2/Server/Plugin/helpers.py b/src/lib/Bcfg2/Server/Plugin/helpers.py
index c76346bc5..a63e9c5f7 100644
--- a/src/lib/Bcfg2/Server/Plugin/helpers.py
+++ b/src/lib/Bcfg2/Server/Plugin/helpers.py
@@ -679,20 +679,6 @@ class StructFile(XMLFileBacked):
dict(Group=lambda el, md, *args: el.get('name') in md.groups,
Client=lambda el, md, *args: el.get('name') == md.hostname)
- #: Callbacks used to determine if children of items with the given
- #: tags should be included in the return value of
- #: :func:`Bcfg2.Server.Plugin.helpers.StructFile.Match` and
- #: :func:`Bcfg2.Server.Plugin.helpers.StructFile.XMLMatch`. Each
- #: callback is passed the same arguments as
- #: :func:`Bcfg2.Server.Plugin.helpers.StructFile._include_element`.
- #: It should return True if children of the element should be
- #: included in the match, False otherwise. The callback does
- #: *not* need to consider negation; that will be handled in
- #: :func:`Bcfg2.Server.Plugin.helpers.StructFile._include_element`
- _include_tests = \
- dict(Group=lambda el, md, *args: el.get('name') in md.groups,
- Client=lambda el, md, *args: el.get('name') == md.hostname)
-
def __init__(self, filename, should_monitor=False):
XMLFileBacked.__init__(self, filename, should_monitor=should_monitor)
self.setup = Bcfg2.Options.get_option_parser()