Fix check ip

legacy
parent 0069b26d76
commit 47644c08fa

@ -21544,6 +21544,10 @@ network %s")%net)
self.printERROR(_("Not enough command line options: %s")\
%", ".join(notFoundKeys))
return False
IPs = self.clVars.Get("os_net_ip").split(',')
if not any(IPs):
self.printERROR(_("Can not found ip in net interfaces"))
return False
if not forceOptions:
# предупреждение при выполнении этой программы будут изменены
# конфигурационные файлы сервиса DHCP (программa dhcpd)
@ -21631,7 +21635,7 @@ network %s")%net)
domain = domainNames[0]
fullHostNameServer = "%s.%s"%(hostname,domain)
IPs = self.clVars.Get("os_net_ip").split(",")
if not IPs:
if not any(IPs):
self.printERROR(_("Can not found ip in net interfaces"))
return False
ipServer = ""

Loading…
Cancel
Save