summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Metadata.py4
1 files changed, 4 insertions, 0 deletions
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$'