From b21a5b7ff470612e2bde5f120aecfbc1a0881689 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Thu, 16 Apr 2020 12:06:36 -0700 Subject: 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 --- cmd/podman/system/info.go | 1 - cmd/podman/system/system.go | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd/podman/system') diff --git a/cmd/podman/system/info.go b/cmd/podman/system/info.go index aa0a66ffc..8e014a91b 100644 --- a/cmd/podman/system/info.go +++ b/cmd/podman/system/info.go @@ -1,7 +1,6 @@ package system import ( - "encoding/json" "fmt" "os" "text/template" diff --git a/cmd/podman/system/system.go b/cmd/podman/system/system.go index 6d8c9ebc5..2d55e8c13 100644 --- a/cmd/podman/system/system.go +++ b/cmd/podman/system/system.go @@ -7,6 +7,9 @@ import ( ) var ( + // Pull in configured json library + json = registry.JsonLibrary() + // Command: podman _system_ systemCmd = &cobra.Command{ Use: "system", -- cgit v1.2.3-54-g00ecf