summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-04-09 08:55:39 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-11 18:35:37 +0000
commit77a1665c05517194c4d5b27b7e03326d4c0923c9 (patch)
tree14b2632da81eecb88fa053f941cae5719c95c1cf /cmd/podman
parent22c00ceebbc0d028af94bffdf5a289ff54e1830f (diff)
downloadpodman-77a1665c05517194c4d5b27b7e03326d4c0923c9.tar.gz
podman-77a1665c05517194c4d5b27b7e03326d4c0923c9.tar.bz2
podman-77a1665c05517194c4d5b27b7e03326d4c0923c9.zip
Containers transitioning to stop should not break stats
When a container is transitioning from running to stopped and stats is runnings, we should not break stats if we are unable to get stats for that container. Resolves: #598 Signed-off-by: baude <bbaude@redhat.com> Closes: #599 Approved by: mheon
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/stats.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/stats.go b/cmd/podman/stats.go
index 3c2dfb5cf..6a8681028 100644
--- a/cmd/podman/stats.go
+++ b/cmd/podman/stats.go
@@ -140,7 +140,7 @@ func statsCmd(c *cli.Context) error {
containerStats[id] = initialStats
}
stats, err := ctr.GetContainerStats(containerStats[id])
- if err != nil {
+ if err != nil && errors.Cause(err) != libpod.ErrNoSuchCtr {
return err
}
// replace the previous measurement with the current one