From cc8a9e645e68324f060d2a7d89d65a11d1e4fef7 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 22 Mar 2012 08:39:36 +0000 Subject: [PATCH] fix for bug 3509482: use SNs ip addresses known by compute nodes as the replication list git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11941 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index e555e40e1..c62d28057 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -10562,7 +10562,7 @@ sub mkdsklsnode } my $xcatmasterip = xCAT::NetworkUtils->getipaddr((keys %xcatmasterhash)[0]); my @allips = xCAT::Utils->gethost_ips(); - if (!grep(/$xcatmasterip/, @allips)) + if (!grep(/^$xcatmasterip$/, @allips)) { $setuphanfserr++; my $rsp; @@ -10575,7 +10575,7 @@ sub mkdsklsnode foreach my $snhost (keys %snhash) { my $snip = xCAT::NetworkUtils->getipaddr($snhost); - if (grep(/$snip/, @allips)) + if (grep(/^$snip$/, @allips)) { $snlocal = $snhost; }