mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-04 12:07:56 +00:00
fix(instutils): group nodes only under usable server addresses
This commit is contained in:
@@ -771,9 +771,9 @@ sub get_server_nodes
|
||||
else{
|
||||
next;
|
||||
}
|
||||
chomp $serv;
|
||||
chomp $serv if $serv;
|
||||
|
||||
if (xCAT::NetworkUtils->validate_ip($serv)) {
|
||||
if (xCAT::NetworkUtils->isValidIp($serv)) {
|
||||
push(@{ $servernodes{$serv} }, $node);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user