Skip to content
Snippets Groups Projects
Commit 6071c3f7 authored by Sam Roberts's avatar Sam Roberts
Browse files

POL1-869 urgent fix: treat non-recognized regions as if empty

parent d5dd80d5
Branches
Tags
No related merge requests found
......@@ -436,4 +436,8 @@ def get_nren_regions(host):
data = []
jsonschema.validate(data, NREN_REGION_LIST_SCHEMA)
# ugly hack: if a region isn't on the list of recognised regions, prune it from the region list
# TODO: figure out something that isn't this
recognised_regions = ['EAP']
data = [d for d in data if d['region'] in recognised_regions]
return data
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment