-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:
parent
49b9ca576f
commit
f012fe2dad
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user