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
7a8b85d7
Commit
7a8b85d7
authored
Jul 08, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 优化log
parent
a6c63178
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
connection.py
coco/connection.py
+3
-4
requirements.txt
requirements/requirements.txt
+1
-1
No files found.
coco/connection.py
View file @
7a8b85d7
...
@@ -139,12 +139,11 @@ class SSHConnection:
...
@@ -139,12 +139,11 @@ class SSHConnection:
key_fingerprint
=
get_private_key_fingerprint
(
key_fingerprint
=
get_private_key_fingerprint
(
system_user
.
private_key
system_user
.
private_key
)
)
msg
=
"Connect {}@{}:{} auth failed, password: {}, key: {}"
.
format
(
logger
.
error
(
"Connect {}@{}:{} auth failed, password:
\
{}, key: {}"
.
format
(
system_user
.
username
,
asset
.
ip
,
asset
.
ssh_port
,
system_user
.
username
,
asset
.
ip
,
asset
.
ssh_port
,
password_short
,
key_fingerprint
,
password_short
,
key_fingerprint
,
))
)
logger
.
error
(
msg
)
error
+=
'
\r\n
'
+
str
(
e
)
if
error
else
str
(
e
)
error
+=
'
\r\n
'
+
str
(
e
)
if
error
else
str
(
e
)
ssh
,
sock
,
error
=
None
,
None
,
error
ssh
,
sock
,
error
=
None
,
None
,
error
self
.
client
=
ssh
self
.
client
=
ssh
...
...
requirements/requirements.txt
View file @
7a8b85d7
...
@@ -19,7 +19,7 @@ itsdangerous==0.24
...
@@ -19,7 +19,7 @@ itsdangerous==0.24
Jinja2==2.10.1
Jinja2==2.10.1
jmespath==0.9.3
jmespath==0.9.3
jms-storage==0.0.23
jms-storage==0.0.23
jumpserver-python-sdk==0.0.6
4
jumpserver-python-sdk==0.0.6
5
MarkupSafe==1.0
MarkupSafe==1.0
oss2==2.4.0
oss2==2.4.0
paramiko==2.4.2
paramiko==2.4.2
...
...
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