Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
coco
Commits
ef2ddabb
Unverified
Commit
ef2ddabb
authored
Nov 13, 2018
by
老广
Committed by
GitHub
Nov 13, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #126 from jumpserver/dev
Dev
parents
6f4273c6
fe6ee03e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
app.py
coco/app.py
+1
-1
interactive.py
coco/interactive.py
+6
-6
No files found.
coco/app.py
View file @
ef2ddabb
...
...
@@ -20,7 +20,7 @@ from .session import Session
from
.models
import
Connection
__version__
=
'1.4.
3
'
__version__
=
'1.4.
4
'
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
logger
=
get_logger
(
__file__
)
...
...
coco/interactive.py
View file @
ef2ddabb
...
...
@@ -176,7 +176,7 @@ class InteractiveServer:
self
.
get_user_nodes
()
if
not
self
.
nodes
:
self
.
client
.
send
(
wr
(
_
(
'No Nodes'
),
before
=
1
))
self
.
client
.
send
(
wr
(
_
(
'No Nodes'
),
before
=
0
))
return
self
.
nodes_tree
.
show
(
key
=
lambda
node
:
node
.
identifier
)
...
...
@@ -311,9 +311,9 @@ class InteractiveServer:
if
assets
and
len
(
assets
)
==
1
:
asset
=
assets
[
0
]
self
.
search_result
=
None
if
asset
.
p
latform
==
"Windows"
:
if
asset
.
p
rotocol
==
"rdp"
or
asset
.
platform
.
lower
()
.
startswith
(
"windows"
)
:
self
.
client
.
send
(
warning
(
_
(
"Terminal does not support login
Windows
, "
_
(
"Terminal does not support login
rdp
, "
"please use web terminal to access"
))
)
return
...
...
@@ -340,12 +340,12 @@ class InteractiveServer:
page
,
result
=
next
(
gen_result
)
except
StopIteration
:
logger
.
info
(
'No Assets'
)
self
.
display_banner
()
self
.
client
.
send
(
wr
(
_
(
"No Assets"
),
before
=
1
))
#
self.display_banner()
self
.
client
.
send
(
wr
(
_
(
"No Assets"
),
before
=
0
))
return
None
except
StopIteration
:
logger
.
info
(
'Back display result paging.'
)
self
.
display_banner
()
#
self.display_banner()
return
None
self
.
display_result_of_page
(
page
,
result
)
action
=
self
.
get_user_action
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment