Skip to content

Commit

Permalink
runtime : delete redundant code in CreateContainer
Browse files Browse the repository at this point in the history
Here we have done with logger and container ID map
Just delete these code.
fixes kata-containers#1740

Signed-off-by: Haomin Tsai <[email protected]>
  • Loading branch information
jshachm committed May 26, 2019
1 parent 360ffdc commit bdae295
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/katautils/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,6 @@ func CreateContainer(ctx context.Context, vci vc.VC, sandbox vc.VCSandbox, ociSp
if err := AddContainerIDMapping(ctx, containerID, sandboxID); err != nil {
return vc.Process{}, err
}

kataUtilsLogger = kataUtilsLogger.WithField("sandbox", sandboxID)

if err := AddContainerIDMapping(ctx, containerID, sandboxID); err != nil {
return vc.Process{}, err
}
}

// Run pre-start OCI hooks.
Expand Down

0 comments on commit bdae295

Please sign in to comment.