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
4accf7fb
Commit
4accf7fb
authored
3 years ago
by
Bjarke Madsen
Browse files
Options
Downloads
Patches
Plain Diff
use token_request instead
parent
531ec254
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
brian_dashboard_manager/grafana/provision.py
+3
-2
3 additions, 2 deletions
brian_dashboard_manager/grafana/provision.py
with
3 additions
and
2 deletions
brian_dashboard_manager/grafana/provision.py
+
3
−
2
View file @
4accf7fb
...
@@ -460,8 +460,9 @@ def provision(config):
...
@@ -460,8 +460,9 @@ def provision(config):
# get dashboard UIDs from ignored folders
# get dashboard UIDs from ignored folders
# and make sure we don't touch them
# and make sure we don't touch them
for
name
in
ignored_folders
:
for
name
in
ignored_folders
:
folder
=
find_folder
(
request
,
name
)
logger
.
info
(
f
'
Ignoring dashboards under the folder
{
org
[
"
name
"
]
}
/
{
name
}
'
)
to_ignore
=
list_dashboards
(
request
,
folder
[
'
id
'
])
folder
=
find_folder
(
token_request
,
name
)
to_ignore
=
list_dashboards
(
token_request
,
folder
[
'
id
'
])
for
dash
in
to_ignore
:
for
dash
in
to_ignore
:
# mark it updated, so we don't modify it.
# mark it updated, so we don't modify it.
...
...
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