Loading cloudcontrol/node/host/__init__.py +3 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,7 @@ class RemoteShell(object): self.proto, proto = None, self.proto # prevents multiple calls to # close method self.close() logger.debug('Tunnel closed by sjRPC') def close(self): if self.process.poll() is None: Loading Loading @@ -296,6 +297,7 @@ class Handler(BasePlugin): """Create a shell tunnel and return the label of the created tunnel. """ logger.debug('Opening shell') remote_shell = RemoteShell(conn, shell) self.shells[remote_shell.label] = remote_shell return remote_shell.label Loading @@ -303,6 +305,7 @@ class Handler(BasePlugin): @threadless def shell_resize(self, label, row, col, xpixel, ypixel): """Resize the shell's attached terminal.""" logger.debug('Shell resize') self.shells[label].resize(row, col, xpixel, ypixel) @pass_connection Loading Loading
cloudcontrol/node/host/__init__.py +3 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,7 @@ class RemoteShell(object): self.proto, proto = None, self.proto # prevents multiple calls to # close method self.close() logger.debug('Tunnel closed by sjRPC') def close(self): if self.process.poll() is None: Loading Loading @@ -296,6 +297,7 @@ class Handler(BasePlugin): """Create a shell tunnel and return the label of the created tunnel. """ logger.debug('Opening shell') remote_shell = RemoteShell(conn, shell) self.shells[remote_shell.label] = remote_shell return remote_shell.label Loading @@ -303,6 +305,7 @@ class Handler(BasePlugin): @threadless def shell_resize(self, label, row, col, xpixel, ypixel): """Resize the shell's attached terminal.""" logger.debug('Shell resize') self.shells[label].resize(row, col, xpixel, ypixel) @pass_connection Loading