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
9815c6b5
Commit
9815c6b5
authored
Sep 12, 2016
by
fibonacci1729
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(1185): get release status by version iff version > 0
parent
a87b33c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
release_server.go
cmd/tiller/release_server.go
+4
-4
No files found.
cmd/tiller/release_server.go
View file @
9815c6b5
...
...
@@ -187,10 +187,10 @@ func (s *releaseServer) GetReleaseStatus(c ctx.Context, req *services.GetRelease
if
rel
,
err
=
s
.
env
.
Releases
.
Deployed
(
req
.
Name
);
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"getting deployed release '%s': %s"
,
req
.
Name
,
err
)
}
}
if
rel
,
err
=
s
.
env
.
Releases
.
Get
(
req
.
Name
,
req
.
Version
);
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"getting release '%s' (v%d): %s"
,
req
.
Name
,
req
.
Version
,
err
)
}
else
{
if
rel
,
err
=
s
.
env
.
Releases
.
Get
(
req
.
Name
,
req
.
Version
);
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"getting release '%s' (v%d): %s"
,
req
.
Name
,
req
.
Version
,
err
)
}
}
if
rel
.
Info
==
nil
{
...
...
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