From 57b5748ce37f78b8da047376f2cf19155ce2a0cf Mon Sep 17 00:00:00 2001 From: Stavros Date: Wed, 28 Aug 2024 10:05:49 +0200 Subject: [PATCH] wip --- reana_server/rest/workflows.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reana_server/rest/workflows.py b/reana_server/rest/workflows.py index 84904a07..3ed103e4 100755 --- a/reana_server/rest/workflows.py +++ b/reana_server/rest/workflows.py @@ -3329,6 +3329,7 @@ def workflow_validation(): logging.info(runtime_parameters) runtime_params_warnings = [] + runtime_params_errors = [] # Check for dangerous operations for parameter in runtime_parameters: @@ -3343,7 +3344,7 @@ def workflow_validation(): for parameter in runtime_parameters: if parameter not in parameters_in_yaml: - runtime_params_warnings.append('Given parameter "' + parameter + '" is not in reana.yaml.') + runtime_params_errors.append('Command-line parameter "' + parameter + '" is not defined in reana.yaml.') logging.info("runtime_params_warnings") logging.info(runtime_params_warnings) @@ -3374,7 +3375,8 @@ def workflow_validation(): response = {"reana_spec_file_warnings": reana_spec_file_warnings, "reana_spec_params_warnings": json.dumps(vars(reana_spec_params_warnings), default=list), - "runtime_params_warnings": runtime_params_warnings} + "runtime_params_warnings": runtime_params_warnings, + "runtime_params_errors": runtime_params_errors} logging.info("Sending Response:") logging.info(response)