Skip to content

Commit bdae295

Browse files
committed
runtime : delete redundant code in CreateContainer
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>
1 parent 360ffdc commit bdae295

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

pkg/katautils/create.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,6 @@ func CreateContainer(ctx context.Context, vci vc.VC, sandbox vc.VCSandbox, ociSp
228228
if err := AddContainerIDMapping(ctx, containerID, sandboxID); err != nil {
229229
return vc.Process{}, err
230230
}
231-
232-
kataUtilsLogger = kataUtilsLogger.WithField("sandbox", sandboxID)
233-
234-
if err := AddContainerIDMapping(ctx, containerID, sandboxID); err != nil {
235-
return vc.Process{}, err
236-
}
237231
}
238232

239233
// Run pre-start OCI hooks.

0 commit comments

Comments
 (0)