Merge pull request #1741 from jshachm/delete-code

runtime : delete redundant code in CreateContainer
This commit is contained in:
Frank Cao 2019-05-27 16:20:16 +08:00 committed by GitHub
commit 43c2796cc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.