Merge pull request #8011 from mheon/fix_inspect_json
Restore indent on JSON from `podman inspect`
This commit is contained in:
commit
d30b4b7aa5
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue