From bdae2954c0baed079b3833307db4e9c9ca528741 Mon Sep 17 00:00:00 2001 From: c00416947 Date: Sun, 26 May 2019 16:05:58 +0800 Subject: [PATCH] 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 --- pkg/katautils/create.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/katautils/create.go b/pkg/katautils/create.go index 9ef4cbb70..2f86d3a37 100644 --- a/pkg/katautils/create.go +++ b/pkg/katautils/create.go @@ -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.