From 0139c924298b41ced082d459738dfa4254b42213 Mon Sep 17 00:00:00 2001 From: Stefano Alberto Russo <stefano.russo@gmail.com> Date: Fri, 13 Jun 2025 20:43:21 +0200 Subject: [PATCH] Bugfixes in ssh-based storages. --- services/webapp/code/rosetta/core_app/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/webapp/code/rosetta/core_app/api.py b/services/webapp/code/rosetta/core_app/api.py index f814e05..2c0e699 100644 --- a/services/webapp/code/rosetta/core_app/api.py +++ b/services/webapp/code/rosetta/core_app/api.py @@ -410,7 +410,7 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI): 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) 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: raise ValueError('Unknown mode "{}"'.format(mode)) @@ -1235,7 +1235,7 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI): # Remove file os.remove('/tmp/{}'.format(file_uuid)) - if storage.access_mode == 'cli': + elif storage.access_mode == 'cli': try: as_user = storage.conf['as_user'] -- GitLab