summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins
diff options
context:
space:
mode:
authorJake Davis <jake.davis@nasa.gov>2012-07-24 19:43:28 +0000
committerJake Davis <jake.davis@nasa.gov>2012-07-24 19:43:28 +0000
commit5f871cc366fe308d102e169dbf485fd6d9928c5e (patch)
treebc9e6017c656455327c72e5104e5d4f01fd2d972 /src/lib/Bcfg2/Server/Plugins
parent1109474bfc7e1fbbd0ba298ef9d44810bb3aea7d (diff)
downloadbcfg2-5f871cc366fe308d102e169dbf485fd6d9928c5e.tar.gz
bcfg2-5f871cc366fe308d102e169dbf485fd6d9928c5e.tar.bz2
bcfg2-5f871cc366fe308d102e169dbf485fd6d9928c5e.zip
Added query b=bundle method to bcfg2-admin.
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Metadata.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Metadata.py b/src/lib/Bcfg2/Server/Plugins/Metadata.py
index acfc0d348..4f6e82128 100644
--- a/src/lib/Bcfg2/Server/Plugins/Metadata.py
+++ b/src/lib/Bcfg2/Server/Plugins/Metadata.py
@@ -682,6 +682,11 @@ class Metadata(Bcfg2.Server.Plugin.Plugin,
for client in list(self.clients.keys())]
return [md.hostname for md in mdata if md.groups.issuperset(groups)]
+ def get_client_names_by_bundles(self, bundles):
+ mdata = [self.core.build_metadata(client)
+ for client in list(self.clients.keys())]
+ return [md.hostname for md in mdata if md.bundles.issuperset(bundles)]
+
def merge_additional_groups(self, imd, groups):
for group in groups:
if (group in self.categories and