summaryrefslogtreecommitdiff
path: root/cmd/podman/images/list.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-21 16:13:06 -0400
committerGitHub <noreply@github.com>2020-04-21 16:13:06 -0400
commitba1b5d4559d336b5d52d961eb273f6fe40c50d8f (patch)
tree765af64fae0f2c3156178e5c71d6d2cb19f1d111 /cmd/podman/images/list.go
parent02bd8cef7b7286f8955a68a00294c08d81803a4a (diff)
parentb21a5b7ff470612e2bde5f120aecfbc1a0881689 (diff)
downloadpodman-ba1b5d4559d336b5d52d961eb273f6fe40c50d8f.tar.gz
podman-ba1b5d4559d336b5d52d961eb273f6fe40c50d8f.tar.bz2
podman-ba1b5d4559d336b5d52d961eb273f6fe40c50d8f.zip
Merge pull request #5851 from jwhonce/wip/json
Provide a json variable pointing to a configured json API
Diffstat (limited to 'cmd/podman/images/list.go')
-rw-r--r--cmd/podman/images/list.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/podman/images/list.go b/cmd/podman/images/list.go
index 63ddc5d56..b979cb6af 100644
--- a/cmd/podman/images/list.go
+++ b/cmd/podman/images/list.go
@@ -14,7 +14,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/spf13/cobra"
"github.com/spf13/pflag"
)
@@ -127,7 +126,6 @@ func writeJSON(imageS []*entities.ImageSummary) error {
imgs = append(imgs, h)
}
- json := jsoniter.ConfigCompatibleWithStandardLibrary
enc := json.NewEncoder(os.Stdout)
return enc.Encode(imgs)
}