From 5aa7f9d869c821f29cd360ff36c7ee05c5dc3600 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 27 Sep 2005 20:10:03 +0000 Subject: add shortname matching (for Cfg) (Logical change 1.322) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1309 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/Server/Metadata.py b/src/lib/Server/Metadata.py index 51b143233..272be74b9 100644 --- a/src/lib/Server/Metadata.py +++ b/src/lib/Server/Metadata.py @@ -27,7 +27,8 @@ class Metadata(object): (other.classes and (other.classes in self.classes)) or (other.attributes and (other.attributes in self.attributes)) or (other.bundles and (other.bundles in self.bundles)) or - (other.hostname and (self.hostname == other.hostname))): + (other.hostname and (self.hostname == other.hostname)) or + (other.hostname and (self.hostname.split('.')[0] == other.hostname))): return True else: return False -- cgit v1.2.3-1-g7c22