diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-11-17 16:46:11 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-12-07 15:16:20 +0100 |
commit | 055248ce983cc4e96cb50e8698e2178c9d9e5488 (patch) | |
tree | 1eec4fff52781deb874b4665167d0692fa20597e /libpod/stats.go | |
parent | 0c967319f85101b84631aff158803e3f11a8402b (diff) | |
download | podman-055248ce983cc4e96cb50e8698e2178c9d9e5488.tar.gz podman-055248ce983cc4e96cb50e8698e2178c9d9e5488.tar.bz2 podman-055248ce983cc4e96cb50e8698e2178c9d9e5488.zip |
container cgroup path
Before querying for a container's cgroup path, make sure that the
container is synced. Also make sure to error out if the container
isn't running.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'libpod/stats.go')
-rw-r--r-- | libpod/stats.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/stats.go b/libpod/stats.go index e34739626..09d990017 100644 --- a/libpod/stats.go +++ b/libpod/stats.go @@ -34,7 +34,7 @@ func (c *Container) GetContainerStats(previousStats *define.ContainerStats) (*de return stats, define.ErrCtrStateInvalid } - cgroupPath, err := c.CGroupPath() + cgroupPath, err := c.cGroupPath() if err != nil { return nil, err } |