summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-03-26 10:03:02 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-03-27 20:00:31 -0400
commit179a66f1a0a22be66c0346afa8ea3181d5846fb2 (patch)
treeebca117ecae87ba531ff1231fbdab6958ffa88e3 /cmd/podman
parent589486e3e569bddf27b1322e1bf3d4d1675f067f (diff)
downloadpodman-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/podman')
-rw-r--r--cmd/podman/ps.go2
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
}