]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
location-importer.in: always convert organisation handles into upper cases
authorPeter Müller <peter.mueller@ipfire.org>
Tue, 3 Nov 2020 15:31:08 +0000 (15:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Nov 2020 11:33:13 +0000 (11:33 +0000)
Fixes: #12523
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/location-importer.in

index 864eab12b329b9082f7279b6fb723f5a645cef02..2dec89e4b9c3f422848b27447d2c555703622b0a 100644 (file)
@@ -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