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 <caihaomin@huawei.com>
(cherry picked from commit bdae295)
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
  • Loading branch information
jshachm authored and Ganesh Maharaj Mahalingam committed Jun 3, 2019
1 parent 0a46998 commit 3cb6316
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 @@ -311,12 +311,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 3cb6316

Please sign in to comment.