diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-08 18:53:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-08 18:53:29 +0100 |
commit | d0a44755c75763d2f5c656dca15b6bb928c961c4 (patch) | |
tree | 9f30abae7a8125f98290dc945476854357b1bfe9 /cmd/podman/system/connection/add.go | |
parent | abfec8144a57265e644dbfec93f5b6201b7da945 (diff) | |
parent | e907f095b24632ebf25348bc17ba3ff3468a979b (diff) | |
download | podman-d0a44755c75763d2f5c656dca15b6bb928c961c4.tar.gz podman-d0a44755c75763d2f5c656dca15b6bb928c961c4.tar.bz2 podman-d0a44755c75763d2f5c656dca15b6bb928c961c4.zip |
Merge pull request #12036 from jwhonce/issues/11984
test connection add
Diffstat (limited to 'cmd/podman/system/connection/add.go')
-rw-r--r-- | cmd/podman/system/connection/add.go | 7 |
1 files changed, 1 insertions, 6 deletions
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 } |