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
32b02732
Commit
32b02732
authored
Oct 12, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复手动模式存在的问题
parent
d7ba5b58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
connection.py
coco/connection.py
+2
-1
proxy.py
coco/proxy.py
+1
-0
No files found.
coco/connection.py
View file @
32b02732
...
...
@@ -22,7 +22,8 @@ AUTO_LOGIN = 'auto'
class
SSHConnection
:
def
get_system_user_auth
(
self
,
system_user
):
@staticmethod
def
get_system_user_auth
(
system_user
):
"""
获取系统用户的认证信息,密码或秘钥
:return: system user have full info
...
...
coco/proxy.py
View file @
32b02732
...
...
@@ -39,6 +39,7 @@ class ProxyServer:
or
(
not
password
and
not
private_key
):
prompt
=
"{}'s password: "
.
format
(
self
.
system_user
.
username
)
password
=
net_input
(
self
.
client
,
prompt
=
prompt
,
sensitive
=
True
)
private_key
=
None
self
.
system_user
.
password
=
password
self
.
system_user
.
private_key
=
private_key
...
...
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