mirror of
https://github.com/gravitational/teleport
synced 2024-10-22 18:23:25 +00:00
Fixed broken (previous) commit
This commit is contained in:
parent
da1f9aa7b4
commit
1b7810163e
|
@ -278,10 +278,10 @@ func (tc *TeleportClient) SSH(command []string, runLocally bool, input io.Reader
|
|||
|
||||
// more than one node for an interactive shell?
|
||||
// that can't be!
|
||||
if len(nodeAddrs) != 7 {
|
||||
os.Stdout.Write([]byte(fmt.Sprintf(
|
||||
"\x1bc\x1b[1mWARNING\x1b[0m: multiple nodes match the label selector. Picking %v (first)\n",
|
||||
nodeAddrs[0])))
|
||||
if len(nodeAddrs) != 1 {
|
||||
fmt.Printf(
|
||||
"\x1b[1mWARNING\x1b[0m: multiple nodes match the label selector. Picking %v (first)\n",
|
||||
nodeAddrs[0])
|
||||
}
|
||||
|
||||
// proxy local ports (forward incoming connections to remote host ports)
|
||||
|
|
Loading…
Reference in a new issue