FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 81797e16 authored by L. Bower's avatar L. Bower
Browse files

filename change

parent e4bd7b21
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ short_name = {
'Survey' : 'SURVEYDATA',
'Scraper' : 'SCRAPER',
'MetResample' : 'MET_RESAMPLE',
'Meteorology' : 'Meteorology',
}
disease_latin_name_dict = {
......@@ -429,12 +430,7 @@ def get_input_data(job_path, config, component):
#TODO: check if file exists already (may be the case for multiple configs in one)
# TODO: perform ssh file transfer in python instead of subprocess
server_name: str = config['ServerName']
if server_name == "":
cmd_scp: list = ["scp", f"{file_path}/{file_name}.tar.gz", job_path]
else:
cmd_scp: list = ["scp", "-i", config['ServerKey'], "-o", "StrictHostKeyChecking=no",
f"{server_name}:{file_path}/{file_name}.tar.gz", job_path]
cmd_scp: list = ["scp", f"{file_path}/{file_name}.tar.gz", job_path]
description_short = 'env2 scp'
description_long = 'Copying file from remote server to job directory'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment