-Support FQDN in makehosts

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3777 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-07-14 15:55:31 +00:00
parent 49b9ca576f
commit f012fe2dad

View File

@ -70,8 +70,11 @@ sub build_line {
}
}
if ($domain && !$longname) {
$longname="$node.$domain";
if ($node =~ m/\.$domain$/i) {
$longname = $node;
$node =~ s/\.$domain$//;
} elsif ($domain && !$longname) {
$longname="$node.$domain";
}
$othernames=join(' ', @o_names);