mirror of
https://github.com/containers/podman.git
synced 2025-06-22 18:08:11 +08:00
rootless: do not overwrite err variable
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -119,8 +119,8 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, cmd *cobra.Command)
|
||||
|
||||
became, ret, err = rootless.TryJoinFromFilePaths(pausePidPath, true, paths)
|
||||
if err := movePauseProcessToScope(ic.Libpod); err != nil {
|
||||
conf, err := ic.Config(context.Background())
|
||||
if err != nil {
|
||||
conf, err2 := ic.Config(context.Background())
|
||||
if err2 != nil {
|
||||
return err
|
||||
}
|
||||
if conf.Engine.CgroupManager == config.SystemdCgroupsManager {
|
||||
|
Reference in New Issue
Block a user