Merge "Revise the implementation in container exec_resize"

This commit is contained in:
Zuul 2017-11-28 01:36:12 +00:00 committed by Gerrit Code Review
commit dcf0828e3a

View File

@ -33,6 +33,7 @@ import websocket
import docker
from zunclient.common.apiclient import exceptions as acexceptions
from zunclient.common.websocketclient import exceptions
LOG = logging.getLogger(__name__)
@ -195,6 +196,8 @@ class BaseClient(object):
self.tty_resize(height=rows, width=cols)
except IOError: # Container already exited
pass
except acexceptions.BadRequest:
pass
def tty_size(self, fd):
"""Get the tty size