mirror of https://github.com/containers/podman.git
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>
This commit is contained in:
parent
de0d2b2ea6
commit
3966d3bf4e
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue