Skip to content

Commit

Permalink
workflows: add validate function to workspace_root_path
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdiazsan committed Sep 5, 2021
1 parent f08a7f6 commit 306313b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions reana_server/rest/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from reana_commons.config import REANA_WORKFLOW_ENGINES
from reana_commons.errors import REANAQuotaExceededError, REANAValidationError
from reana_commons.operational_options import validate_operational_options
from reana_commons.workspaces import validate_workspace
from reana_db.database import Session
from reana_db.models import (
InteractiveSessionType,
Expand Down Expand Up @@ -401,8 +402,8 @@ 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(
"root_path", None
workspace_root_path = validate_workspace(
reana_spec_file.get("workspace", {}).get("root_path", None)
)
if git_data:
workflow_dict["git_data"] = git_data
Expand Down

0 comments on commit 306313b

Please sign in to comment.