summaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-10 10:53:47 -0400
committerGitHub <noreply@github.com>2021-09-10 10:53:47 -0400
commit0b6c56b80d7642e33f89b3f24cde53c7817e64d9 (patch)
tree41d6c41f0373883c284a087974bcda4355d11a83 /pkg/api
parentcf4a7b8d37c48bc9ccf8e5a2fdc9b005113fd847 (diff)
parent50688da29b4a37006d0a7fafc25aca1a6447c7d9 (diff)
downloadpodman-0b6c56b80d7642e33f89b3f24cde53c7817e64d9.tar.gz
podman-0b6c56b80d7642e33f89b3f24cde53c7817e64d9.tar.bz2
podman-0b6c56b80d7642e33f89b3f24cde53c7817e64d9.zip
Merge pull request #11506 from giuseppe/fix-stats-restart-container
stats: detect container restart and allow paused containers
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/handlers/compat/containers_stats.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/containers_stats.go b/pkg/api/handlers/compat/containers_stats.go
index 851955207..b95fbfdd8 100644
--- a/pkg/api/handlers/compat/containers_stats.go
+++ b/pkg/api/handlers/compat/containers_stats.go
@@ -97,7 +97,7 @@ streamLabel: // A label to flatten the scope
default:
// Container stats
- stats, err := ctnr.GetContainerStats(stats)
+ stats, err = ctnr.GetContainerStats(stats)
if err != nil {
logrus.Errorf("Unable to get container stats: %v", err)
return