Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inventory-provider
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
dashboardv3
inventory-provider
Commits
81cb4cb3
Commit
81cb4cb3
authored
6 months ago
by
Sam Roberts
Browse files
Options
Downloads
Patches
Plain Diff
more general region check
parent
f0d65e75
No related branches found
Branches containing commit
Tags
0.111
Tags containing commit
1 merge request
!43
Regions included in dashboard generation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
inventory_provider/routes/poller.py
+5
-1
5 additions, 1 deletion
inventory_provider/routes/poller.py
with
5 additions
and
1 deletion
inventory_provider/routes/poller.py
+
5
−
1
View file @
81cb4cb3
...
...
@@ -907,7 +907,11 @@ def load_interfaces_to_poll(config, hostname=None, no_lab=False, use_next_redis=
ifc
[
'
circuits
'
]
=
ifc_services_and_customers
[
'
services
'
]
_customers
=
ifc_services_and_customers
.
get
(
'
customers
'
,
[])
region
=
'
EAP
'
if
any
(
customer
in
region_index
.
get
(
'
EAP
'
,
[])
for
customer
in
_customers
)
else
None
region
=
None
for
region_name
in
region_index
:
if
any
(
customer
[
'
name
'
]
in
region_index
[
region_name
]
for
customer
in
_customers
):
region
=
region_name
break
dashboards
=
_get_dashboards
(
ifc
,
region
)
ifc
[
'
dashboards
'
]
=
sorted
([
d
.
name
for
d
in
dashboards
])
...
...
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