Fix regression where script crashes when using IPv6

Regression was introduced in d67aadd038
This commit is contained in:
Sebastian Lohff 2019-09-01 01:56:38 +02:00
parent b6a47783b6
commit d0a3658a93
1 changed files with 4 additions and 1 deletions

View File

@ -312,7 +312,10 @@ def main():
cfgdrv.set_hostname(args.hostname)
for net in args.networks:
net = net.split(":")
if ";" in net:
net = net.split(";")
else:
net = net.split(":")
cfgdrv.conf_network(*net)
if args.nameservers: