mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 16:57:18 +00:00
runtime : delete redundant code in CreateContainer
Here we have done with logger and container ID map Just delete these code. fixes #1740 Signed-off-by: Haomin Tsai <caihaomin@huawei.com>
This commit is contained in:
parent
360ffdca37
commit
bdae2954c0
@ -228,12 +228,6 @@ func CreateContainer(ctx context.Context, vci vc.VC, sandbox vc.VCSandbox, ociSp
|
|||||||
if err := AddContainerIDMapping(ctx, containerID, sandboxID); err != nil {
|
if err := AddContainerIDMapping(ctx, containerID, sandboxID); err != nil {
|
||||||
return vc.Process{}, err
|
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.
|
// Run pre-start OCI hooks.
|
||||||
|
Loading…
Reference in New Issue
Block a user