mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-27 23:01:12 +00:00
-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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user