diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-06-23 18:50:09 -0700 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-06-24 14:43:31 -0400 |
commit | d26662484b3cf7d49ec134b01a161fd4d47eebd4 (patch) | |
tree | c5a15bd163b90764d7c8645b884e0a6a077aea17 /cmd/podman | |
parent | d94644d35a6b7056f75da28b8a090ca250e121db (diff) | |
download | podman-d26662484b3cf7d49ec134b01a161fd4d47eebd4.tar.gz podman-d26662484b3cf7d49ec134b01a161fd4d47eebd4.tar.bz2 podman-d26662484b3cf7d49ec134b01a161fd4d47eebd4.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/podman')
-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 |