From 6c42d488fc1e080d409dea23e44f2c49e1e80e41 Mon Sep 17 00:00:00 2001 From: sjing Date: Fri, 3 Feb 2012 09:53:09 +0000 Subject: [PATCH] fix for the problem when mn configured with global ipv6 address. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11464 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 198c9cd8e..28132f98f 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -938,7 +938,7 @@ sub add_or_delete_records { @ips = ($ctx->{hoststab}->{$node}->[0]->{ip}); } else { @ips = getipaddr($node,GetAllAddresses=>1); - unless (@ips) { + 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; }