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

fix defect 94 [DEV]<xcatconfig -d> failed to determine the correct site.forwarder

This commit is contained in:
immarvin
2016-01-14 00:20:12 -05:00
parent 98add47637
commit 43b5904499

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
}