mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
fix bad output format for attaching pods
This commit is contained in:
parent
e7ad6e6008
commit
6dddafe73b
@ -259,11 +259,6 @@ func (p *AttachOptions) Run() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn := func() error {
|
fn := func() error {
|
||||||
|
|
||||||
if !p.Quiet && stderr != nil {
|
|
||||||
fmt.Fprintln(stderr, "If you don't see a command prompt, try pressing enter.")
|
|
||||||
}
|
|
||||||
|
|
||||||
restClient, err := restclient.RESTClientFor(p.Config)
|
restClient, err := restclient.RESTClientFor(p.Config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -285,6 +280,9 @@ func (p *AttachOptions) Run() error {
|
|||||||
return p.Attach.Attach("POST", req.URL(), p.Config, p.In, p.Out, p.Err, t.Raw, sizeQueue)
|
return p.Attach.Attach("POST", req.URL(), p.Config, p.In, p.Out, p.Err, t.Raw, sizeQueue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !p.Quiet && stderr != nil {
|
||||||
|
fmt.Fprintln(stderr, "If you don't see a command prompt, try pressing enter.")
|
||||||
|
}
|
||||||
if err := t.Safe(fn); err != nil {
|
if err := t.Safe(fn); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user