From 1e6ae347716ba98b6d2797ae04c724ea4185accd Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 22 Mar 2012 08:38:56 +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/trunk@11940 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; }