summaryrefslogtreecommitdiff
path: root/cmd/podman/images/history.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-04-16 12:06:36 -0700
committerJhon Honce <jhonce@redhat.com>2020-04-21 07:56:10 -0700
commitb21a5b7ff470612e2bde5f120aecfbc1a0881689 (patch)
treea47e3a42d363a99537a4d154bfecd2eba0de40fd /cmd/podman/images/history.go
parentf4c2eb1d9dcff5feda5c3eae81ce1bcdbf166ec4 (diff)
downloadpodman-b21a5b7ff470612e2bde5f120aecfbc1a0881689.tar.gz
podman-b21a5b7ff470612e2bde5f120aecfbc1a0881689.tar.bz2
podman-b21a5b7ff470612e2bde5f120aecfbc1a0881689.zip
Provide a json variable pointing to a configured json API
* All commands now using the same instance of json API * `json` variable created in each package to prevent `encoding/json` from being re-introduced Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'cmd/podman/images/history.go')
-rw-r--r--cmd/podman/images/history.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/podman/images/history.go b/cmd/podman/images/history.go
index c92072bff..b8d216cc1 100644
--- a/cmd/podman/images/history.go
+++ b/cmd/podman/images/history.go
@@ -13,7 +13,6 @@ import (
"github.com/containers/libpod/cmd/podman/registry"
"github.com/containers/libpod/pkg/domain/entities"
"github.com/docker/go-units"
- jsoniter "github.com/json-iterator/go"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
@@ -77,7 +76,6 @@ func history(cmd *cobra.Command, args []string) error {
layers[i].ImageHistoryLayer = l
layers[i].Created = l.Created.Format(time.RFC3339)
}
- json := jsoniter.ConfigCompatibleWithStandardLibrary
enc := json.NewEncoder(os.Stdout)
err = enc.Encode(layers)
}