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

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