diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-12-28 15:00:21 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-12-28 15:00:21 +0000 |
commit | f1afc0de20f37afcb59a6c869c0e871724654c9e (patch) | |
tree | 342971ea5fb1906562ef8864c9b9ccd715ca7542 /src | |
parent | b891a92539d0125cd1c4f70bee3c00a25980a1aa (diff) | |
download | bcfg2-f1afc0de20f37afcb59a6c869c0e871724654c9e.tar.gz bcfg2-f1afc0de20f37afcb59a6c869c0e871724654c9e.tar.bz2 bcfg2-f1afc0de20f37afcb59a6c869c0e871724654c9e.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Plugins/Metadata.py | 7 |
1 files 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''' |