Merge pull request #1055 from Random-Liu/use-right-sandbox-config

Use the correct sandbox config.
This commit is contained in:
Lantao Liu 2019-02-28 13:02:39 -08:00 committed by GitHub
commit 210e80289b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ func (c *criService) CreateContainer(ctx context.Context, r *runtime.CreateConta
// Get container log path. // Get container log path.
if config.GetLogPath() != "" { if config.GetLogPath() != "" {
meta.LogPath = filepath.Join(sandbox.Config.GetLogDirectory(), config.GetLogPath()) meta.LogPath = filepath.Join(sandboxConfig.GetLogDirectory(), config.GetLogPath())
} }
containerIO, err := cio.NewContainerIO(id, containerIO, err := cio.NewContainerIO(id,