diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-08-03 21:42:16 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-08-03 21:42:16 +0000 |
commit | 5b15e204a0edbbb998b4388f092e49b2cccb3e5e (patch) | |
tree | 05b813b7d4d06bb721de191b28622652683a556b /src/Metadata.py | |
parent | 72b8217c8024c3f6e26ade73bf6726a1044fab6a (diff) | |
download | bcfg2-5b15e204a0edbbb998b4388f092e49b2cccb3e5e.tar.gz bcfg2-5b15e204a0edbbb998b4388f092e49b2cccb3e5e.tar.bz2 bcfg2-5b15e204a0edbbb998b4388f092e49b2cccb3e5e.zip |
readd Applies
2004/08/03 16:36:32-05:00 anl.gov!desai
update Metadata to new set of data
(Logical change 1.25)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@122 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/Metadata.py')
-rw-r--r-- | src/Metadata.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Metadata.py b/src/Metadata.py index 11a008e36..dc8e2029e 100644 --- a/src/Metadata.py +++ b/src/Metadata.py @@ -112,18 +112,19 @@ class Store(object): class Metadata(object): '''The Metadata class is a container for all classes of metadata used by Bcfg2''' - def __init__(self, all, image, bundles, tags, hostname): + def __init__(self, all, image, classes, bundles, attributes, hostname): self.all = all self.image = image + self.classes = classes self.bundles = bundles - self.tags = tags + self.attributes = attributes self.hostname = hostname def Applies(self, other): '''Applies checks if the object associated with this metadata is relevant to the metadata supplied by other''' - for tag in self.tags: - if tag not in other.tags: + for c in self.classes: + if c not in other.classes: return False for bundle in self.bundles: if bundle not in other.bundles: |