From 1b7ffeb4854465df3cb829b17bc9547fdfcbbd7e Mon Sep 17 00:00:00 2001 From: sjing Date: Fri, 3 Feb 2012 09:39:54 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/ddns.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index fa61fff08..3e30d9d8d 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -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; } }