Skip to content

Commit

Permalink
Restore indent on JSON from podman inspect
Browse files Browse the repository at this point in the history
I don't know when this was disabled, but it's very hard to read
without it.

Signed-off-by: Matthew Heon <[email protected]>
  • Loading branch information
mheon committed Oct 13, 2020
1 parent 8fef35a commit 915591b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/podman/inspect/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 915591b

Please sign in to comment.