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:
commit
bf3eb5fb39
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user