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:
commit
6683aabd2b
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user