From 9d701f9e122714382c5a399b3c069db8c034894f Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Fri, 28 Jun 2013 18:29:47 -0500 Subject: Plugin/helpers: Remove duplicate _include_tests Signed-off-by: Sol Jerome --- src/lib/Bcfg2/Server/Plugin/helpers.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/lib/Bcfg2') 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 @@ -665,20 +665,6 @@ class StructFile(XMLFileBacked): #: the file being cached __identifier__ = None - #: 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) - #: 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 -- cgit v1.2.3-1-g7c22