mirror of
https://github.com/containers/podman.git
synced 2025-08-02 17:22:30 +08:00
libpod: allow cgroup path without infra container
a pod can use cgroups without an infra container. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -361,9 +361,6 @@ func (p *Pod) CgroupPath() (string, error) {
|
||||
if err := p.updatePod(); err != nil {
|
||||
return "", err
|
||||
}
|
||||
if p.state.InfraContainerID == "" {
|
||||
return "", fmt.Errorf("pod has no infra container: %w", define.ErrNoSuchCtr)
|
||||
}
|
||||
return p.state.CgroupPath, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user