aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-14 10:55:27 +0200
committerGitHub <noreply@github.com>2020-10-14 10:55:27 +0200
commitd30b4b7aa5076c3192faada7d408f039a40414eb (patch)
tree0eee0e077ba139687db334b06d424e0ba95e7abc /cmd
parentd1ba9ce555099ad4cf2fd49c4598edaae0bfe0e4 (diff)
parent915591b832223762e2eb62523730ce4e81e1e644 (diff)
downloadpodman-d30b4b7aa5076c3192faada7d408f039a40414eb.tar.gz
podman-d30b4b7aa5076c3192faada7d408f039a40414eb.tar.bz2
podman-d30b4b7aa5076c3192faada7d408f039a40414eb.zip
Merge pull request #8011 from mheon/fix_inspect_json
Restore indent on JSON from `podman inspect`
Diffstat (limited to 'cmd')
-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)
}