summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-09-27 20:10:03 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-09-27 20:10:03 +0000
commit5aa7f9d869c821f29cd360ff36c7ee05c5dc3600 (patch)
tree795af2869abbac53629b3896543038f5f050e00f
parent32357b49334a84e73c0f51fda2872845e5ff34a2 (diff)
downloadbcfg2-5aa7f9d869c821f29cd360ff36c7ee05c5dc3600.tar.gz
bcfg2-5aa7f9d869c821f29cd360ff36c7ee05c5dc3600.tar.bz2
bcfg2-5aa7f9d869c821f29cd360ff36c7ee05c5dc3600.zip
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
-rw-r--r--src/lib/Server/Metadata.py3
1 files changed, 2 insertions, 1 deletions
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