mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
libpod: drop warning if cgroup doesn't exist
do not print a warning on cgroup removal if it doesn't exist. Closes: https://github.com/containers/podman/issues/13382 [NO NEW TESTS NEEDED] Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
ef202133f5
commit
4dbb2bf92b
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ package libpod
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
|
@ -239,7 +240,7 @@ func (r *Runtime) removePod(ctx context.Context, p *Pod, removeCtrs, force bool,
|
|||
|
||||
// Don't try if we failed to retrieve the cgroup
|
||||
if err == nil {
|
||||
if err := conmonCgroup.Update(resLimits); err != nil {
|
||||
if err := conmonCgroup.Update(resLimits); err != nil && !os.IsNotExist(err) {
|
||||
logrus.Warnf("Error updating pod %s conmon cgroup PID limit: %v", p.ID(), err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue