Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
1cebc760
Unverified
Commit
1cebc760
authored
Oct 25, 2017
by
Lukas Eichler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warning for missing formating parameter inside error message.
parent
2c338db1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
engine.go
pkg/engine/engine.go
+2
-2
No files found.
pkg/engine/engine.go
View file @
1cebc760
...
...
@@ -168,7 +168,7 @@ func (e *Engine) alterFuncMap(t *template.Template) template.FuncMap {
funcMap
[
"tpl"
]
=
func
(
tpl
string
,
vals
chartutil
.
Values
)
(
string
,
error
)
{
basePath
,
err
:=
vals
.
PathValue
(
"Template.BasePath"
)
if
err
!=
nil
{
return
""
,
fmt
.
Errorf
(
"Cannot retrieve Template.Basepath from values inside tpl function"
,
tpl
,
err
.
Error
())
return
""
,
fmt
.
Errorf
(
"Cannot retrieve Template.Basepath from values inside tpl function
: %s (%s)
"
,
tpl
,
err
.
Error
())
}
r
:=
renderable
{
...
...
@@ -182,7 +182,7 @@ func (e *Engine) alterFuncMap(t *template.Template) template.FuncMap {
templates
:=
map
[
string
]
renderable
{}
templateName
,
err
:=
vals
.
PathValue
(
"Template.Name"
)
if
err
!=
nil
{
return
""
,
fmt
.
Errorf
(
"Cannot retrieve Template.Name from values inside tpl function"
,
tpl
,
err
.
Error
())
return
""
,
fmt
.
Errorf
(
"Cannot retrieve Template.Name from values inside tpl function
: %s (%s)
"
,
tpl
,
err
.
Error
())
}
templates
[
templateName
.
(
string
)]
=
r
...
...
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