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
Merge requests
!43
Regions included in dashboard generation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Regions included in dashboard generation
feature/POL1-430-more-changes
into
develop
Overview
0
Commits
4
Pipelines
0
Changes
1
Merged
Sam Roberts
requested to merge
feature/POL1-430-more-changes
into
develop
7 months ago
Overview
0
Commits
4
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
81cb4cb3
Prev
Next
Show latest version
1 file
+
5
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
81cb4cb3
more general region check
· 81cb4cb3
Sam Roberts
authored
7 months ago
inventory_provider/routes/poller.py
+
5
−
1
Options
@@ -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
])
Loading