summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Metadata.py4
1 files changed, 2 insertions, 2 deletions
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: