Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
f606654c
Commit
f606654c
authored
Jun 04, 2018
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provisioning: adds fallback if evalsymlink/abs fails
parent
3f507833
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
pkg/services/provisioning/dashboards/file_reader.go
+5
-1
No files found.
pkg/services/provisioning/dashboards/file_reader.go
View file @
f606654c
...
...
@@ -51,7 +51,6 @@ func NewDashboardFileReader(cfg *DashboardsAsConfig, log log.Logger) (*fileReade
path
,
err
:=
filepath
.
Abs
(
path
)
if
err
!=
nil
{
log
.
Error
(
"Could not create absolute path "
,
"path"
,
path
)
path
=
copy
//if .Abs return an error we fallback to path
}
path
,
err
=
filepath
.
EvalSymlinks
(
path
)
...
...
@@ -59,6 +58,11 @@ func NewDashboardFileReader(cfg *DashboardsAsConfig, log log.Logger) (*fileReade
log
.
Error
(
"Failed to read content of symlinked path: %s"
,
path
)
}
if
path
==
""
{
path
=
copy
log
.
Info
(
"falling back to original path due to EvalSymlink/Abs failure"
)
}
return
&
fileReader
{
Cfg
:
cfg
,
Path
:
path
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment