From: Michael Tremer Date: Tue, 27 Sep 2022 08:03:23 +0000 (+0000) Subject: importer: Fix reading Geofeeds from remarks X-Git-Tag: 0.9.17~29^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45c0536c76fc203cccc8dc1b6214329a97fcbc49;p=location%2Flibloc.git importer: Fix reading Geofeeds from remarks Only RIPE has a dedicated geofeed field. For others, this data needs to be read from the remarks section. Signed-off-by: Michael Tremer --- diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index 7e2136e..0e2764e 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -863,8 +863,8 @@ class CLI(object): inetnum["geofeed"] = val # Parse geofeed when used as a remark - elif key == "remark": - m = re.match(r"^(?:geofeed|Geofeed)\s+(https://.*)", val) + elif key == "remarks": + m = re.match(r"^(?:Geofeed)\s+(https://.*)", val) if m: inetnum["geofeed"] = m.group(1)