Fix regression where script crashes when using IPv6
Regression was introduced in d67aadd038
This commit is contained in:
parent
b6a47783b6
commit
d0a3658a93
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue