summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Metadata.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins/Metadata.py')
-rw-r--r--src/lib/Server/Plugins/Metadata.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index ee4f0ec0e..ae23ece0f 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -23,7 +23,7 @@ class ClientMetadata(object):
self.probes = probed
self.uuid = uuid
self.password = password
- self.overall = overall
+ self.all = overall
def inGroup(self, group):
'''Test to see if client is a member of group'''
@@ -439,3 +439,8 @@ class Metadata(Bcfg2.Server.Plugin.Plugin):
if user != 'root':
self.session_cache[address] = (time.time(), user)
return True
+
+ def GetClientByGroup(self, group):
+ '''Return a list of clients that are in a given group'''
+ return [client for client in self.clients \
+ if group in self.groups[self.clients[client]][1]]