Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-node
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
cc-node
Commits
4a46c384
Commit
4a46c384
authored
12 years ago
by
Anael Beutot
Browse files
Options
Downloads
Patches
Plain Diff
Debug
parent
db6f4f62
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cloudcontrol/node/host/__init__.py
+3
-0
3 additions, 0 deletions
cloudcontrol/node/host/__init__.py
with
3 additions
and
0 deletions
cloudcontrol/node/host/__init__.py
+
3
−
0
View file @
4a46c384
...
@@ -119,6 +119,7 @@ class RemoteShell(object):
...
@@ -119,6 +119,7 @@ class RemoteShell(object):
self
.
proto
,
proto
=
None
,
self
.
proto
# prevents multiple calls to
self
.
proto
,
proto
=
None
,
self
.
proto
# prevents multiple calls to
# close method
# close method
self
.
close
()
self
.
close
()
logger
.
debug
(
'
Tunnel closed by sjRPC
'
)
def
close
(
self
):
def
close
(
self
):
if
self
.
process
.
poll
()
is
None
:
if
self
.
process
.
poll
()
is
None
:
...
@@ -296,6 +297,7 @@ class Handler(BasePlugin):
...
@@ -296,6 +297,7 @@ class Handler(BasePlugin):
"""
Create a shell tunnel and return the label of the created tunnel.
"""
Create a shell tunnel and return the label of the created tunnel.
"""
"""
logger
.
debug
(
'
Opening shell
'
)
remote_shell
=
RemoteShell
(
conn
,
shell
)
remote_shell
=
RemoteShell
(
conn
,
shell
)
self
.
shells
[
remote_shell
.
label
]
=
remote_shell
self
.
shells
[
remote_shell
.
label
]
=
remote_shell
return
remote_shell
.
label
return
remote_shell
.
label
...
@@ -303,6 +305,7 @@ class Handler(BasePlugin):
...
@@ -303,6 +305,7 @@ class Handler(BasePlugin):
@threadless
@threadless
def
shell_resize
(
self
,
label
,
row
,
col
,
xpixel
,
ypixel
):
def
shell_resize
(
self
,
label
,
row
,
col
,
xpixel
,
ypixel
):
"""
Resize the shell
'
s attached terminal.
"""
"""
Resize the shell
'
s attached terminal.
"""
logger
.
debug
(
'
Shell resize
'
)
self
.
shells
[
label
].
resize
(
row
,
col
,
xpixel
,
ypixel
)
self
.
shells
[
label
].
resize
(
row
,
col
,
xpixel
,
ypixel
)
@pass_connection
@pass_connection
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment