defect 3085064: fixed the problem that strip off hostname from CN when not set site.domain

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2010-10-11 05:59:45 +00:00
parent 5cb7a8d9d8
commit 5c92a9fb45

View File

@ -776,7 +776,7 @@ if ($inet6support) {
$peerhost && $peerhost =~ s/\.$domain\.*$//;
} else {
# otherwise just strip off whatever comes after the first dot
$peerhost && $peerhost =~ s/^.*?\.//;
$peerhost && $peerhost =~ s/\..*//;
}
$peerhost && $peerhost =~ s/-eth\d*$//;