Fix for bug 3952

Made makedhcp be able to handle the case where site.nameservers or
networks.nameservers is a comma delimited list with <xcatmaster>
keyword in it.
This commit is contained in:
sjing 2014-01-02 01:17:44 -05:00
parent 49cd33382c
commit f11aa5cc6d

View File

@ -2176,10 +2176,7 @@ sub addnet
}
# convert <xcatmaster> to nameserver IP
if ($nameservers eq '<xcatmaster>')
{
$nameservers = $myip;
}
$nameservers =~ s/<xcatmaster>/$myip/g;
if (!$ntpservers || ($ntpservers eq '<xcatmaster>'))
{