Skip to content
Snippets Groups Projects
Commit 0139c924 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Bugfixes in ssh-based storages.

parent 8ae7de19
No related branches found
No related tags found
No related merge requests found
...@@ -410,7 +410,7 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI): ...@@ -410,7 +410,7 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI):
if mode=='get': if mode=='get':
command = 'scp -P {} -o LogLevel=ERROR -i {} -4 -o StrictHostKeyChecking=no {}@{}:{} {}'.format(computing_port, computing_keys.private_key_file, computing_user, computing_host, source, dest) command = 'scp -P {} -o LogLevel=ERROR -i {} -4 -o StrictHostKeyChecking=no {}@{}:{} {}'.format(computing_port, computing_keys.private_key_file, computing_user, computing_host, source, dest)
elif mode == 'put': elif mode == 'put':
command = 'scp -P -o LogLevel=ERROR -i {} -4 -o StrictHostKeyChecking=no {} {}@{}:{}'.format(computing_port, computing_keys.private_key_file, source, computing_user, computing_host, dest) command = 'scp -P {} -o LogLevel=ERROR -i {} -4 -o StrictHostKeyChecking=no {} {}@{}:{}'.format(computing_port, computing_keys.private_key_file, source, computing_user, computing_host, dest)
else: else:
raise ValueError('Unknown mode "{}"'.format(mode)) raise ValueError('Unknown mode "{}"'.format(mode))
...@@ -1235,7 +1235,7 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI): ...@@ -1235,7 +1235,7 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI):
# Remove file # Remove file
os.remove('/tmp/{}'.format(file_uuid)) os.remove('/tmp/{}'.format(file_uuid))
if storage.access_mode == 'cli': elif storage.access_mode == 'cli':
try: try:
as_user = storage.conf['as_user'] as_user = storage.conf['as_user']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment