diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-06-23 18:50:09 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-06-23 18:51:56 -0700 |
commit | 4e59fd77a80a6295eb8dbf79991e1648bc739302 (patch) | |
tree | 66eecbb91e80c3325d16d71df4503880dbf17567 /cmd | |
parent | 5fe122bf528a0665f7d12bc47357779b8686f6cf (diff) | |
download | podman-4e59fd77a80a6295eb8dbf79991e1648bc739302.tar.gz podman-4e59fd77a80a6295eb8dbf79991e1648bc739302.tar.bz2 podman-4e59fd77a80a6295eb8dbf79991e1648bc739302.zip |
Fix ssh-agent support
* An identity of "" implies ssh-agent and user/password to be used
* Fixed example
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/system/connection.go | 4 |
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 |