From 20407a2f1fadb1488caac1560dfdd56facff4153 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Thu, 7 May 2020 16:35:48 -0500 Subject: 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 --- cmd/podman/containers/stats.go | 1 - 1 file changed, 1 deletion(-) (limited to 'cmd') 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 -- cgit v1.2.3-54-g00ecf