diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-11-30 20:18:32 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-11-30 20:18:32 +0000 |
commit | b889bf11295ef58d7e7592044cbd996df6844586 (patch) | |
tree | c26c090318bdb0e685ad62422f044a777805c14f /src | |
parent | 2c2766fe6d404b63729d34874aa0b18a87dd7d43 (diff) | |
download | bcfg2-b889bf11295ef58d7e7592044cbd996df6844586.tar.gz bcfg2-b889bf11295ef58d7e7592044cbd996df6844586.tar.bz2 bcfg2-b889bf11295ef58d7e7592044cbd996df6844586.zip |
Fix installation for reports system
Add a new method for client metadata objects
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2555 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Plugins/Metadata.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py index 61fbaa95c..3d9854dd3 100644 --- a/src/lib/Server/Plugins/Metadata.py +++ b/src/lib/Server/Plugins/Metadata.py @@ -22,6 +22,10 @@ class ClientMetadata(object): self.categories = categories self.probes = probed + def inGroup(self, group): + '''Test to see if client is a member of group''' + return group in self.groups + class Metadata(Bcfg2.Server.Plugin.Plugin): '''This class contains data for bcfg2 server metadata''' __version__ = '$Id$' |