mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +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 {
|
func printJSON(data []interface{}) error {
|
||||||
enc := json.NewEncoder(os.Stdout)
|
enc := json.NewEncoder(os.Stdout)
|
||||||
|
enc.SetIndent("", " ")
|
||||||
return enc.Encode(data)
|
return enc.Encode(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user