Merge "Revise the implementation in container exec_resize"
This commit is contained in:
commit
dcf0828e3a
@ -33,6 +33,7 @@ import websocket
|
|||||||
|
|
||||||
import docker
|
import docker
|
||||||
|
|
||||||
|
from zunclient.common.apiclient import exceptions as acexceptions
|
||||||
from zunclient.common.websocketclient import exceptions
|
from zunclient.common.websocketclient import exceptions
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
@ -195,6 +196,8 @@ class BaseClient(object):
|
|||||||
self.tty_resize(height=rows, width=cols)
|
self.tty_resize(height=rows, width=cols)
|
||||||
except IOError: # Container already exited
|
except IOError: # Container already exited
|
||||||
pass
|
pass
|
||||||
|
except acexceptions.BadRequest:
|
||||||
|
pass
|
||||||
|
|
||||||
def tty_size(self, fd):
|
def tty_size(self, fd):
|
||||||
"""Get the tty size
|
"""Get the tty size
|
||||||
|
Loading…
Reference in New Issue
Block a user