summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-05-07 16:35:48 -0500
committerBrent Baude <bbaude@redhat.com>2020-05-08 09:05:37 -0500
commit20407a2f1fadb1488caac1560dfdd56facff4153 (patch)
treee6c1e9fb94b09bc54caaa631e858b11cfab31464 /cmd
parenta4c607cc71ea5c3a4d4898a84b19cdd236ae90bd (diff)
downloadpodman-20407a2f1fadb1488caac1560dfdd56facff4153.tar.gz
podman-20407a2f1fadb1488caac1560dfdd56facff4153.tar.bz2
podman-20407a2f1fadb1488caac1560dfdd56facff4153.zip
fix pod stats flake
it appears that the pod stats flake can be attributed to the fact that the container being run is not fully running when the stats call is made. because the stats call is in format of json, it fails when nil Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/containers/stats.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd/podman/containers/stats.go b/cmd/podman/containers/stats.go
index 3f9db671f..5b7f52cc7 100644
--- a/cmd/podman/containers/stats.go
+++ b/cmd/podman/containers/stats.go
@@ -234,7 +234,6 @@ func outputJSON(stats []*containerStats) error {
Pids: j.PIDS(),
})
}
-
b, err := json.MarshalIndent(jstats, "", " ")
if err != nil {
return err