Skip to content

Commit

Permalink
fix in download
Browse files Browse the repository at this point in the history
  • Loading branch information
baminou committed Mar 12, 2018
1 parent e3ee7f4 commit 485f695
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions workflow/tools/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@
'-v', cwd+':/app',
download_container,
'-p',project_code,'-f', str(_file.get('ega_file_id'))[-2:]+"/"+_file.get('ega_file_id')+".aes",
'-o', _file.get('file_name')+'.aes'])
'-o', os.path.join('/app',_file.get('file_name')+'.aes')])
else:
r = subprocess.check_output(['docker','run',
'-e', 'ASCP_EGA_HOST',
'-e', 'ASCP_EGA_USER',
'-e', 'ASPERA_SCP_PASS',
'-v', cwd + ':/app',
download_container,
'-p',project_code,'-f', _file.get('ega_file_id')+".aes", '-o', _file.get('file_name')+'.aes'])
'-p',project_code,'-f', _file.get('ega_file_id')+".aes",
'-o',os.path.join('/app',_file.get('file_name')+'.aes')])
except Exception, e:
with open('jt.log', 'w') as f: f.write(str(e))
sys.exit(1) # task failed
Expand Down

0 comments on commit 485f695

Please sign in to comment.