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,6 +312,9 @@ def main():
cfgdrv.set_hostname(args.hostname) cfgdrv.set_hostname(args.hostname)
for net in args.networks: for net in args.networks:
if ";" in net:
net = net.split(";")
else:
net = net.split(":") net = net.split(":")
cfgdrv.conf_network(*net) cfgdrv.conf_network(*net)