fix for the makedns problem when mn configured with global ipv6 address

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11463 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2012-02-03 09:39:54 +00:00
parent 23cebd7a11
commit 1b7ffeb485

View File

@ -944,8 +944,8 @@ sub add_or_delete_records {
@ips = ($ctx->{hoststab}->{$node}->[0]->{ip});
} else {
@ips = getipaddr($node,GetAllAddresses=>1);
unless (@ips) {
xCAT::SvrUtils::sendmsg([1,"Unable to find an IP for $node in hosts table or via system lookup (i.e. /etc/hosts"], $callback);
if (!defined($ips[0])) {
xCAT::SvrUtils::sendmsg([1,"Unable to find an IP for $node in hosts table or via system lookup (i.e. /etc/hosts)"], $callback);
next;
}
}