summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-07-14 01:32:08 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-07-14 01:32:08 +0000
commit1ef918da9e4189dda27d627eb2d1491f627f2128 (patch)
tree4256a8a33ca96553d632e03338c4d4dc7d90d24a /src
parentfebcfaad2e7a7dc5e15f397bf1a5aea05d40b865 (diff)
downloadbcfg2-1ef918da9e4189dda27d627eb2d1491f627f2128.tar.gz
bcfg2-1ef918da9e4189dda27d627eb2d1491f627f2128.tar.bz2
bcfg2-1ef918da9e4189dda27d627eb2d1491f627f2128.zip
Metadata: fix query.all_groups to catch implicit groups in groups.xml
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5325 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/Metadata.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py
index daf1ab16c..609e8ecd4 100644
--- a/src/lib/Server/Plugins/Metadata.py
+++ b/src/lib/Server/Plugins/Metadata.py
@@ -551,7 +551,9 @@ class Metadata(Bcfg2.Server.Plugin.Plugin,
addresses, newcategories, uuid, password, self.query)
def get_all_group_names(self):
- return self.groups.keys()
+ all_groups = set()
+ [all_groups.update(g[1]) for g in self.groups.values()]
+ return all_groups
def get_client_names_by_profiles(self, profiles):
return [client for client, profile in self.clients.iteritems() \