Skip to content

Commit

Permalink
workflows: extract workspace-root-path from a new top section from .y…
Browse files Browse the repository at this point in the history
…aml file

It passes a workspace_root_path as a parameter to rwc

Closes reanahub/reana-client#545
  • Loading branch information
marcdiazsan committed Aug 18, 2021
1 parent 5c718b8 commit 892b0eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion reana_server/rest/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,15 @@ def create_workflow(user): # noqa
workflow_dict["operational_options"] = validate_operational_options(
workflow_engine, reana_spec_file.get("inputs", {}).get("options", {})
)
workspace_root_path = reana_spec_file.get("workspace", {}).get(
"workspace_root_path", None
)
if git_data:
workflow_dict["git_data"] = git_data
response, http_response = current_rwc_api_client.api.create_workflow(
workflow=workflow_dict, user=str(user.id_)
workflow=workflow_dict,
user=str(user.id_),
workspace_root_path=workspace_root_path,
).result()
if git_data:
workflow = _get_workflow_with_uuid_or_name(
Expand Down

0 comments on commit 892b0eb

Please sign in to comment.