Skip to content

Commit

Permalink
Merge pull request #8011 from mheon/fix_inspect_json
Browse files Browse the repository at this point in the history
Restore indent on JSON from `podman inspect`
  • Loading branch information
openshift-merge-robot committed Oct 14, 2020
2 parents d1ba9ce + 915591b commit d30b4b7
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 d30b4b7

Please sign in to comment.