From e907f095b24632ebf25348bc17ba3ff3468a979b Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Mon, 18 Oct 2021 07:47:46 -0700 Subject: test connection add * Fix connection JSON encoding * Add custom ginkgo matchers for connection testing * Cleanup code Fixes #11984 Signed-off-by: Jhon Honce --- cmd/podman/system/connection/add.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'cmd/podman/system/connection/add.go') diff --git a/cmd/podman/system/connection/add.go b/cmd/podman/system/connection/add.go index 290b3c245..ee237d7d0 100644 --- a/cmd/podman/system/connection/add.go +++ b/cmd/podman/system/connection/add.go @@ -226,12 +226,7 @@ func getUDS(cmd *cobra.Command, uri *url.URL, iden string) (string, error) { if v, found := os.LookupEnv("PODMAN_BINARY"); found { podman = v } - run := podman + " info --format=json" - out, err := ExecRemoteCommand(dial, run) - if err != nil { - return "", err - } - infoJSON, err := json.Marshal(out) + infoJSON, err := ExecRemoteCommand(dial, podman+" info --format=json") if err != nil { return "", err } -- cgit v1.2.3-54-g00ecf