2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Merge pull request #604 from immarvin/onissue594

fix defect 94 [DEV]<xcatconfig -d> failed to determine the correct site.forwarder
This commit is contained in:
Yuan Bai 2016-01-18 14:02:54 +08:00
commit 6683aabd2b

View File

@ -1060,7 +1060,7 @@ sub initDB
xCAT::Utils->runcmd(
"/bin/grep ^[^#]*nameserver /etc/resolv.conf | awk '{print \$2}'", -1);
foreach my $ip (@tmpnames) {
if (!grep(/$ip/, @MNnodeipaddr))
if (!grep(/^$ip$/, @MNnodeipaddr))
{ # if not the MN
push @names,$ip; # add it as a forwarder
}