From: Peter Müller Date: Tue, 3 Nov 2020 15:31:08 +0000 (+0000) Subject: location-importer.in: always convert organisation handles into upper cases X-Git-Tag: 0.9.5~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7d612e5219ef9ba612ed404e4e2c174110d3dd7;p=location%2Flibloc.git location-importer.in: always convert organisation handles into upper cases Fixes: #12523 Signed-off-by: Peter Müller Signed-off-by: Michael Tremer --- diff --git a/src/python/location-importer.in b/src/python/location-importer.in index 864eab1..2dec89e 100644 --- a/src/python/location-importer.in +++ b/src/python/location-importer.in @@ -560,7 +560,7 @@ class CLI(object): autnum["asn"] = m.group(2) elif key == "org": - autnum[key] = val + autnum[key] = val.upper() # Skip empty objects if not autnum: @@ -646,7 +646,9 @@ class CLI(object): # Split line key, val = split_line(line) - if key in ("organisation", "org-name"): + if key == "organisation": + org[key] = val.upper() + elif key == "org-name": org[key] = val # Skip empty objects