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
b42f0675
Commit
b42f0675
authored
Oct 18, 2016
by
Matt Butcher
Committed by
GitHub
Oct 18, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1392 from technosophos/fix/1374-accessing-nil-obj-in-error
fix(tiller): fix nil pointers in error messages
parents
d744a3d0
a1f5955a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cfgmaps.go
pkg/storage/driver/cfgmaps.go
+2
-2
No files found.
pkg/storage/driver/cfgmaps.go
View file @
b42f0675
...
@@ -100,7 +100,7 @@ func (cfgmaps *ConfigMaps) List(filter func(*rspb.Release) bool) ([]*rspb.Releas
...
@@ -100,7 +100,7 @@ func (cfgmaps *ConfigMaps) List(filter func(*rspb.Release) bool) ([]*rspb.Releas
for
_
,
item
:=
range
list
.
Items
{
for
_
,
item
:=
range
list
.
Items
{
rls
,
err
:=
decodeRelease
(
item
.
Data
[
"release"
])
rls
,
err
:=
decodeRelease
(
item
.
Data
[
"release"
])
if
err
!=
nil
{
if
err
!=
nil
{
logerrf
(
err
,
"list: failed to decode release: %
s"
,
rls
)
logerrf
(
err
,
"list: failed to decode release: %
v"
,
item
)
continue
continue
}
}
if
filter
(
rls
)
{
if
filter
(
rls
)
{
...
@@ -201,7 +201,7 @@ func (cfgmaps *ConfigMaps) Delete(key string) (rls *rspb.Release, err error) {
...
@@ -201,7 +201,7 @@ func (cfgmaps *ConfigMaps) Delete(key string) (rls *rspb.Release, err error) {
return
nil
,
ErrReleaseNotFound
return
nil
,
ErrReleaseNotFound
}
}
logerrf
(
err
,
"delete: failed to get release %q"
,
rls
.
Name
)
logerrf
(
err
,
"delete: failed to get release %q"
,
key
)
return
nil
,
err
return
nil
,
err
}
}
// delete the release
// delete the release
...
...
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