summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setup.py3
-rw-r--r--src/lib/Server/Plugins/Metadata.py4
2 files changed, 6 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 9737dd4e1..82b5fe975 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,8 @@ setup(name="Bcfg2.Server",
author="Narayan Desai",
author_email="desai@mcs.anl.gov",
packages=["Bcfg2", 'Bcfg2.Server', "Bcfg2.Server.Plugins", "Bcfg2.Server.Hostbase",
- "Bcfg2.Server.Reports","Bcfg2.Client", "Bcfg2.Client.Tools"],
+ "Bcfg2.Server.Reports","Bcfg2.Server.Reports.reports", "Bcfg2.Client",
+ "Bcfg2.Client.Tools"],
package_dir = {'Bcfg2':'src/lib'},
scripts = glob('src/sbin/*'),
data_files = [('share/bcfg2/schemas',
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index 61fbaa95c..3d9854dd3 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -22,6 +22,10 @@ class ClientMetadata(object):
self.categories = categories
self.probes = probed
+ def inGroup(self, group):
+ '''Test to see if client is a member of group'''
+ return group in self.groups
+
class Metadata(Bcfg2.Server.Plugin.Plugin):
'''This class contains data for bcfg2 server metadata'''
__version__ = '$Id$'