summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2010-12-08 21:58:42 -0600
committerNarayan Desai <desai@mcs.anl.gov>2010-12-08 21:58:42 -0600
commit71bb583ac04ff1c52e03d69a91bbb508783566f8 (patch)
treeafbd90ca1f5d19cb7b29fb4b50f032bc0175e359 /src/lib/Server
parentdfcabfcbfc6970c526c80e6f688744966e532c66 (diff)
downloadbcfg2-71bb583ac04ff1c52e03d69a91bbb508783566f8.tar.gz
bcfg2-71bb583ac04ff1c52e03d69a91bbb508783566f8.tar.bz2
bcfg2-71bb583ac04ff1c52e03d69a91bbb508783566f8.zip
Metadata: fix bcfg2-admin query (Resolves Ticket #959)
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Plugins/Metadata.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index 81fd3e173..a7c80667f 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -611,9 +611,8 @@ class Metadata(Bcfg2.Server.Plugin.Plugin,
if profile in profiles]
def get_client_names_by_groups(self, groups):
- gprofiles = [profile for profile in self.profiles if \
- self.groups[profile][1].issuperset(groups)]
- return self.get_client_names_by_profiles(gprofiles)
+ mdata = [self.core.build_metadata(client) for client in self.clients.keys()]
+ return [md.hostname for md in mdata if md.groups.issuperset(groups)]
def merge_additional_groups(self, imd, groups):
for group in groups: