aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_internal_linux.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-01-08 15:12:43 -0500
committerMatthew Heon <matthew.heon@pm.me>2019-01-10 15:48:09 -0500
commit3966d3bf4e6be2975c330af64ce6ba86b4eeabe0 (patch)
tree1ab2968feabc60768ac04c7f832ddfb93f97e3ad /libpod/container_internal_linux.go
parentde0d2b2ea6c55b521268ee5fc320b89d2b349d1c (diff)
downloadpodman-3966d3bf4e6be2975c330af64ce6ba86b4eeabe0.tar.gz
podman-3966d3bf4e6be2975c330af64ce6ba86b4eeabe0.tar.bz2
podman-3966d3bf4e6be2975c330af64ce6ba86b4eeabe0.zip
Replace tab with spaces in MarshalIndent in libpod
The json-iterator package will panic on attempting to use MarshalIndent with a non-space indentation. This is sort of silly but swapping from tabs to spaces is not a big issue for us, so let's work around the silly panic. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r--libpod/container_internal_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index 9b03db662..4f490bb88 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -490,7 +490,7 @@ func (c *Container) checkpoint(ctx context.Context, options ContainerCheckpointO
// Save network.status. This is needed to restore the container with
// the same IP. Currently limited to one IP address in a container
// with one interface.
- formatJSON, err := json.MarshalIndent(c.state.NetworkStatus, "", " ")
+ formatJSON, err := json.MarshalIndent(c.state.NetworkStatus, "", " ")
if err != nil {
return err
}