diff options
author | Matthew Heon <matthew.heon@pm.me> | 2019-03-26 10:03:02 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-03-27 20:00:31 -0400 |
commit | 179a66f1a0a22be66c0346afa8ea3181d5846fb2 (patch) | |
tree | ebca117ecae87ba531ff1231fbdab6958ffa88e3 /cmd | |
parent | 589486e3e569bddf27b1322e1bf3d4d1675f067f (diff) | |
download | podman-179a66f1a0a22be66c0346afa8ea3181d5846fb2.tar.gz podman-179a66f1a0a22be66c0346afa8ea3181d5846fb2.tar.bz2 podman-179a66f1a0a22be66c0346afa8ea3181d5846fb2.zip |
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>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/ps.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/ps.go b/cmd/podman/ps.go index 098d18fa4..a9802d27f 100644 --- a/cmd/podman/ps.go +++ b/cmd/podman/ps.go @@ -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 } |