From 5b15e204a0edbbb998b4388f092e49b2cccb3e5e Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 3 Aug 2004 21:42:16 +0000 Subject: 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 --- src/Metadata.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') 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: -- cgit v1.2.3-1-g7c22