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:
parent
49cd33382c
commit
f11aa5cc6d
@ -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>'))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user