summaryrefslogtreecommitdiff
path: root/libpod/container_attach.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/container_attach.go')
-rw-r--r--libpod/container_attach.go20
1 files changed, 12 insertions, 8 deletions
diff --git a/libpod/container_attach.go b/libpod/container_attach.go
index 7775e1a5d..bcfb6ec49 100644
--- a/libpod/container_attach.go
+++ b/libpod/container_attach.go
@@ -7,7 +7,7 @@ import (
"net"
"os"
"path/filepath"
- "strconv"
+ //"strconv"
"github.com/docker/docker/pkg/term"
"github.com/pkg/errors"
@@ -31,13 +31,17 @@ func (c *Container) attachContainerSocket(resize <-chan remotecommand.TerminalSi
outputStream := os.Stdout
errorStream := os.Stderr
defer inputStream.Close()
- tty, err := strconv.ParseBool(c.runningSpec.Annotations["io.kubernetes.cri-o.TTY"])
- if err != nil {
- return errors.Wrapf(err, "unable to parse annotations in %s", c.ID)
- }
- if !tty {
- return errors.Errorf("no tty available for %s", c.ID())
- }
+
+ // TODO Renable this when tty/terminal discussion is had.
+ /*
+ tty, err := strconv.ParseBool(c.runningSpec.Annotations["io.kubernetes.cri-o.TTY"])
+ if err != nil {
+ return errors.Wrapf(err, "unable to parse annotations in %s", c.ID)
+ }
+ if !tty {
+ return errors.Errorf("no tty available for %s", c.ID())
+ }
+ */
if terminal.IsTerminal(int(inputStream.Fd())) {
oldTermState, err := term.SaveState(inputStream.Fd())