Fix dns set

master3.3 3.1.2
Mike Hiretsky 12 years ago
parent 2782c81820
commit 8846d18c2a

@ -704,11 +704,11 @@ class VariableOsInstallNetDns(VariableOsInstallNetDnsSearch):
map(lambda x:x.strip().partition("nameserver")[2].strip(),
filter(lambda x:x.lstrip().startswith("nameserver"),
readLinesFile('/etc/resolv.conf'))))
return "" if self.isDNSByDHCP() else ",".join(dnsIps)
return "" if self.isDNSByDHCP() else " ".join(dnsIps)
def check(self,value):
reIp = re.compile(ip.IP_ADDR)
if any(ifilterfalse(reIp.match,value.split(','))):
if any(ifilterfalse(reIp.match,value.split(' '))):
raise VariableError(_("Wrong IP address for DNS"))
def humanReadable(self):

Loading…
Cancel
Save