Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
brian-dashboard-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
brian
brian-dashboard-manager
Commits
6a1f34a0
Commit
6a1f34a0
authored
4 months ago
by
Bjarke Madsen
Browse files
Options
Downloads
Patches
Plain Diff
make region a lookup dict
parent
a78ef6c1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
brian_dashboard_manager/inventory_provider/interfaces.py
+1
-5
1 addition, 5 deletions
brian_dashboard_manager/inventory_provider/interfaces.py
with
1 addition
and
5 deletions
brian_dashboard_manager/inventory_provider/interfaces.py
+
1
−
5
View file @
6a1f34a0
...
@@ -436,8 +436,4 @@ def get_nren_regions(host):
...
@@ -436,8 +436,4 @@ def get_nren_regions(host):
data
=
[]
data
=
[]
jsonschema
.
validate
(
data
,
NREN_REGION_LIST_SCHEMA
)
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
return
{
region
[
'
nren
'
]:
region
[
'
region
'
].
upper
()
for
region
in
data
}
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment