2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Merge pull request #1576 from immarvin/onotherinterfaces

fix issue  [DEV] "makehosts" generates the /etc/hosts entries with wrong domain name for node with "otherinterfaces" attribute #1575
This commit is contained in:
Xiaopeng Wang 2016-07-22 15:24:30 +08:00 committed by GitHub
commit bf3eb5fb39

View File

@ -205,6 +205,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;
}
}