2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-01 18:35:36 +00:00

fix issue [DEV] "makehosts" generates the /etc/hosts entries with wrong domain name for node with "otherinterfaces" attribute #1575

This commit is contained in:
immarvin
2016-07-22 02:24:28 -04:00
parent a64958f843
commit 13b0b37560

View File

@ -203,6 +203,13 @@ sub addotherinterfaces
{
$itf = $node . $itf;
}
#lookup the domain for the ip address
#if failed, use the domain passed in
my ($mydomain,$mynet)=getIPdomain($ip);
if($mydomain){
$domain=$mydomain;
}
addnode $callback, $itf, $ip, '', $domain;
}
}