Merge pull request #8011 from mheon/fix_inspect_json

Restore indent on JSON from `podman inspect`
This commit is contained in:
OpenShift Merge Robot 2020-10-14 10:55:27 +02:00 committed by GitHub
commit d30b4b7aa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}