Skip to content

Commit

Permalink
Merge pull request #2277 from YaoZengzeng/minor-error
Browse files Browse the repository at this point in the history
bugfix: minor fix for error misuse
  • Loading branch information
fuweid authored Sep 26, 2018
2 parents dbd12d6 + dc0f006 commit a300ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cri/v1alpha1/cri.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ func (c *CriManager) CreateContainer(ctx context.Context, r *runtime.CreateConta
// If the container failed to be created, clean up the container.
if err != nil {
removeErr := c.ContainerMgr.Remove(ctx, containerID, &apitypes.ContainerRemoveOptions{Volumes: true, Force: true})
if err != nil {
if removeErr != nil {
logrus.Errorf("failed to remove the container when creating container failed: %v", removeErr)
}
}
Expand Down

0 comments on commit a300ed8

Please sign in to comment.