Commit 38d0faea authored by Peter Müller's avatar Peter Müller Committed by Michael Tremer

location-importer.in: Do not make things more complicated than they are

Suggested-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
Signed-off-by: default avatarPeter Müller <peter.mueller@ipfire.org>
Reviewed-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent ad017947
......@@ -687,7 +687,7 @@ class CLI(object):
start_address = ipaddress.ip_network(start_address, strict=False)
except ValueError:
start_address = start_address.split("/")
ldigits = len(start_address[0].split("."))
ldigits = start_address[0].count(".")
# How many octets do we need to add?
# (LACNIC does not seem to have a /8 or greater assigned, so the following should suffice.)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment