Commit 01e5f0ff authored by Peter Müller's avatar Peter Müller Committed by Michael Tremer

location-importer: Replace "UK" with "GB"

Apparently, LACNIC does not to proper input validation on supplied
country codes, so people can use "UK", while they probably mean "GB"
instead.
Signed-off-by: default avatarPeter Müller <peter.mueller@ipfire.org>
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 5254e5fc
......@@ -734,6 +734,10 @@ class CLI(object):
# ... but keep this list distinct...
continue
# When people set country codes to "UK", they actually mean "GB"
if val == "UK":
val = "GB"
inetnum[key].append(val)
# Skip empty objects
......
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