Merge "Revise the implementation in container exec_resize"
This commit is contained in:
commit
dcf0828e3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user