mirror of
https://github.com/containers/podman.git
synced 2025-06-22 18:08:11 +08:00
Merge pull request #8011 from mheon/fix_inspect_json
Restore indent on JSON from `podman inspect`
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user