From 6f1fc7477cddeb53eb2807154004a6a851b10374 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 17 Aug 2016 19:04:25 +0200 Subject: Server/models: Exclude the Reporting plugin The reporting database is not handled within Bcfg2.Server but in the Bcfg2.Reporting app. --- src/lib/Bcfg2/Server/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib') diff --git a/src/lib/Bcfg2/Server/models.py b/src/lib/Bcfg2/Server/models.py index 65f17ee7c..7f28fd0d8 100644 --- a/src/lib/Bcfg2/Server/models.py +++ b/src/lib/Bcfg2/Server/models.py @@ -17,6 +17,10 @@ def _get_all_plugins(): for submodule in walk_packages(path=Bcfg2.Server.Plugins.__path__, prefix="Bcfg2.Server.Plugins."): module = submodule[1].rsplit('.', 1)[-1] + if module == 'Reporting': + # Exclude Reporting plugin. The reporting database + # is handled separately in Bcfg2.Reporting. + continue if submodule[1] == "Bcfg2.Server.Plugins.%s" % module: # we only include direct children of # Bcfg2.Server.Plugins -- e.g., all_plugins should -- cgit v1.2.3-1-g7c22