summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2020-10-13 14:51:11 -0400
committerMatthew Heon <mheon@redhat.com>2020-10-13 14:52:33 -0400
commit915591b832223762e2eb62523730ce4e81e1e644 (patch)
treef0a55d877a65fea537075b258ed9521474a62ae6
parent8fef35a2ff64ed130a6b8b08a62f2f07433b4114 (diff)
downloadpodman-915591b832223762e2eb62523730ce4e81e1e644.tar.gz
podman-915591b832223762e2eb62523730ce4e81e1e644.tar.bz2
podman-915591b832223762e2eb62523730ce4e81e1e644.zip
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 <mheon@redhat.com>
-rw-r--r--cmd/podman/inspect/inspect.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/inspect/inspect.go b/cmd/podman/inspect/inspect.go
index 658463650..3d1ef72aa 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)
}