From b6b22a448846ddc014dbfc4f780ae0b93b128af6 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 30 Nov 2004 23:02:50 +0000 Subject: fix case where single file has single class/attributes from metadata (Logical change 1.154) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@688 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/Server/Metadata.py') diff --git a/src/lib/Server/Metadata.py b/src/lib/Server/Metadata.py index 7e1c23996..ec1d04e4b 100644 --- a/src/lib/Server/Metadata.py +++ b/src/lib/Server/Metadata.py @@ -18,8 +18,8 @@ class Metadata(object): def Applies(self, other): '''Check if metadata styled object applies to current metadata''' if (other.all or (other.image and (self.image == other.image)) or - (other.classes and (self.classes == other.classes)) or - (other.attributes and (self.attributes == other.attributes)) or + (other.classes and (other.classes in self.classes)) or + (other.attributes and (other.attributes in self.attributes)) or (other.hostname and (self.hostname == other.hostname))): return True else: -- cgit v1.2.3-1-g7c22