Merge pull request #17190 from vrothberg/ps-optimizations

ps: do not create copy of container config
This commit is contained in:
OpenShift Merge Robot 2023-01-23 11:46:33 -05:00 committed by GitHub
commit ebc754ff1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ func ListContainerBatch(rt *libpod.Runtime, ctr *libpod.Container, opts entities
}
}
conConfig = c.Config()
conConfig = c.ConfigNoCopy()
conState, err = c.State()
if err != nil {
return fmt.Errorf("unable to obtain container state: %w", err)