From f1afc0de20f37afcb59a6c869c0e871724654c9e Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Fri, 28 Dec 2007 15:00:21 +0000 Subject: Add overall view of metadata to ClientMetadata instances git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4115 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugins/Metadata.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py index dfe6adf6f..ee4f0ec0e 100644 --- a/src/lib/Server/Plugins/Metadata.py +++ b/src/lib/Server/Plugins/Metadata.py @@ -14,7 +14,7 @@ class MetadataRuntimeError(Exception): class ClientMetadata(object): '''This object contains client metadata''' - def __init__(self, client, groups, bundles, toolset, categories, probed, uuid, password): + def __init__(self, client, groups, bundles, toolset, categories, probed, uuid, password, overall): self.hostname = client self.bundles = bundles self.groups = groups @@ -23,6 +23,7 @@ class ClientMetadata(object): self.probes = probed self.uuid = uuid self.password = password + self.overall = overall def inGroup(self, group): '''Test to see if client is a member of group''' @@ -334,8 +335,8 @@ class Metadata(Bcfg2.Server.Plugin.Plugin): [newbundles.append(b) for b in nbundles if b not in newbundles] [newgroups.append(g) for g in ngroups if g not in newgroups] newcategories.update(ncategories) - return ClientMetadata(client, newgroups, newbundles, toolset, newcategories, - probed, uuid, password) + return ClientMetadata(client, newgroups, newbundles, toolset, + newcategories, probed, uuid, password, self) def GetProbes(self, meta, force=False): '''Return a set of probes for execution on client''' -- cgit v1.2.3-1-g7c22