Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
ee0d12a4
Commit
ee0d12a4
authored
Sep 15, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove separate handling of SSH dir
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
77f097af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
weblate/trans/ssh.py
weblate/trans/ssh.py
+0
-20
No files found.
weblate/trans/ssh.py
View file @
ee0d12a4
...
...
@@ -46,15 +46,6 @@ ssh \
'''
def
ensure_ssh_dir
():
"""
Ensures the ssh configuration directory exists.
"""
ssh_dir
=
data_dir
(
'ssh'
)
if
not
os
.
path
.
exists
(
ssh_dir
):
os
.
makedirs
(
ssh_dir
)
def
ssh_file
(
filename
):
"""
Generates full path to SSH configuration file.
...
...
@@ -139,9 +130,6 @@ def generate_ssh_key(request):
Generates SSH key.
"""
try
:
# Create directory if it does not exist
ensure_ssh_dir
()
# Actually generate the key
subprocess
.
check_output
(
[
...
...
@@ -167,7 +155,6 @@ def add_host_key(request):
"""
Adds host key for a host.
"""
ensure_ssh_dir
()
host
=
request
.
POST
.
get
(
'host'
,
''
)
port
=
request
.
POST
.
get
(
'port'
,
''
)
if
len
(
host
)
==
0
:
...
...
@@ -226,11 +213,6 @@ def can_generate_key():
"""
Checks whether we can generate key.
"""
try
:
ensure_ssh_dir
()
except
OSError
:
return
False
return
find_executable
(
'ssh-keygen'
)
is
not
None
...
...
@@ -238,8 +220,6 @@ def create_ssh_wrapper():
"""
Creates wrapper for SSH to pass custom known hosts and key.
"""
ensure_ssh_dir
()
ssh_wrapper
=
ssh_file
(
SSH_WRAPPER
)
with
open
(
ssh_wrapper
,
'w'
)
as
handle
:
...
...
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