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]>
(cherry picked from commit bdae295)
Signed-off-by: Ganesh Maharaj Mahalingam <[email protected]>
  • Loading branch information
jshachm authored and Ganesh Maharaj Mahalingam committed Jun 3, 2019
1 parent 2a05efc commit d044549
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 @@ -263,12 +263,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 d044549

Please sign in to comment.