mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Use spaces instead of tab for JSON marshal indent
The jsoniterator library believes that panic() is a reasonable response to being told to indent JSON with a tab. So use spaces instead. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
This commit is contained in:
@ -646,7 +646,7 @@ func printFormat(format string, containers []shared.PsContainerOutput) error {
|
||||
}
|
||||
|
||||
func dumpJSON(containers []shared.PsContainerOutput) error {
|
||||
b, err := json.MarshalIndent(containers, "", "\t")
|
||||
b, err := json.MarshalIndent(containers, "", " ")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user