Skip to content

Commit

Permalink
api: fix path to write input files
Browse files Browse the repository at this point in the history
* (closes reanahub/reana-server#13).

Signed-off-by: Diego Rodriguez <diego.rodriguez@cern.ch>
  • Loading branch information
Diego Rodriguez committed Oct 28, 2017
1 parent 93eaf55 commit 822ae31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reana_workflow_controller/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ def seed_workflow_workspace(workflow_id):
raise ValueError('The file transferred needs to have name.')

workflow = Workflow.query.filter(Workflow.id_ == workflow_id).first()
file_.save(os.path.join(workflow.workspace, file_name))
file_.save(os.path.join(os.getenv('SHARED_VOLUME_PATH'),
workflow.workspace_path, file_name))
return jsonify({'message': 'File successfully transferred'}), 200
except KeyError as e:
return jsonify({"message": str(e)}), 400
Expand Down

0 comments on commit 822ae31

Please sign in to comment.