summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-24 09:24:24 -0400
committerGitHub <noreply@github.com>2020-06-24 09:24:24 -0400
commitb74238864fe4a6fe22f3a8a370e9a32ea21ee383 (patch)
tree60dbd9f32dd24fa577d7c270cb6e04e50b1e6027 /cmd/podman
parent3df30ef358e3211d4d6812ab08e9ceb1e31a771a (diff)
parent4e59fd77a80a6295eb8dbf79991e1648bc739302 (diff)
downloadpodman-b74238864fe4a6fe22f3a8a370e9a32ea21ee383.tar.gz
podman-b74238864fe4a6fe22f3a8a370e9a32ea21ee383.tar.bz2
podman-b74238864fe4a6fe22f3a8a370e9a32ea21ee383.zip
Merge pull request #6739 from jwhonce/wip/connection
Fix ssh-agent support
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/system/connection.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/system/connection.go b/cmd/podman/system/connection.go
index d8c709d6e..2fdfcf7c5 100644
--- a/cmd/podman/system/connection.go
+++ b/cmd/podman/system/connection.go
@@ -42,7 +42,7 @@ var (
RunE: connection,
Example: `podman system connection server.fubar.com
podman system connection --identity ~/.ssh/dev_rsa ssh://root@server.fubar.com:2222
- podman system connection --identity ~/.ssh/dev_rsa -port 22 root@server.fubar.com`,
+ podman system connection --identity ~/.ssh/dev_rsa --port 22 root@server.fubar.com`,
}
cOpts = struct {
@@ -202,7 +202,7 @@ func getUDS(cmd *cobra.Command, uri *url.URL) (string, error) {
return "", errors.Wrapf(err, "failed to parse 'podman info' results")
}
- if info.Host.RemoteSocket == nil || !info.Host.RemoteSocket.Exists {
+ if info.Host.RemoteSocket == nil || len(info.Host.RemoteSocket.Path) == 0 {
return "", fmt.Errorf("remote podman %q failed to report its UDS socket", uri.Host)
}
return info.Host.RemoteSocket.Path, nil