From a854098a7d35dad37be2b3c268381c01e8b6c916 Mon Sep 17 00:00:00 2001 From: sjing Date: Thu, 23 Jun 2011 07:39:43 +0000 Subject: [PATCH] do not need message for localhost. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9910 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ddns.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ddns.pm b/xCAT-server/lib/xcat/plugins/ddns.pm index 76a5602c8..6b22198f6 100644 --- a/xCAT-server/lib/xcat/plugins/ddns.pm +++ b/xCAT-server/lib/xcat/plugins/ddns.pm @@ -307,7 +307,10 @@ sub process_request { } else { - xCAT::SvrUtils::sendmsg(":Ignoring host $node in /etc/hosts, it does not belong to any nets defined in networks table.", $callback); + unless ($node =~ /localhost/) + { + xCAT::SvrUtils::sendmsg(":Ignoring host $node in /etc/hosts, it does not belong to any nets defined in networks table.", $callback); + } } } }