Skip to content

Commit

Permalink
fix panic on step = 0 when remove image
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-joo authored and CMGS committed Apr 10, 2019
1 parent ac3c4d0 commit 2405419
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster/calcium/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import (
// RemoveImage remove images
func (c *Calcium) RemoveImage(ctx context.Context, podname, nodename string, images []string, step int, prune bool) (chan *types.RemoveImageMessage, error) {
ch := make(chan *types.RemoveImageMessage)
if step < 1 {
step = 1
}

var err error
nodes := []*types.Node{}
Expand Down

0 comments on commit 2405419

Please sign in to comment.