From 915591b832223762e2eb62523730ce4e81e1e644 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Tue, 13 Oct 2020 14:51:11 -0400 Subject: [PATCH] Restore indent on JSON from `podman inspect` I don't know when this was disabled, but it's very hard to read without it. Signed-off-by: Matthew Heon --- cmd/podman/inspect/inspect.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/podman/inspect/inspect.go b/cmd/podman/inspect/inspect.go index 658463650440..3d1ef72aa90b 100644 --- a/cmd/podman/inspect/inspect.go +++ b/cmd/podman/inspect/inspect.go @@ -167,6 +167,7 @@ func (i *inspector) inspect(namesOrIDs []string) error { func printJSON(data []interface{}) error { enc := json.NewEncoder(os.Stdout) + enc.SetIndent("", " ") return enc.Encode(data) }