From 912ced691c1086043bf11266e073f5713835e5bc Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Tue, 24 Oct 2023 15:34:24 -0400 Subject: [PATCH] fix builtin process URL references to use resolved ID from YAML config if provided --- weaver/processes/builtin/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaver/processes/builtin/__init__.py b/weaver/processes/builtin/__init__.py index 9a886b78b..47e986ace 100644 --- a/weaver/processes/builtin/__init__.py +++ b/weaver/processes/builtin/__init__.py @@ -145,7 +145,6 @@ def register_builtin_processes(container): process_path = process_data["package"] process_desc = process_data["payload"] process_info = get_process_definition(process_desc, package=None, reference=process_path, builtin=True) - process_url = "/".join([restapi_url, "processes", process_id]) process_package = _get_builtin_package(process_id, process_info["package"]) process_abstract = _get_builtin_metadata( process_id, process_path, "__doc__", process_info, "description", clean=True @@ -153,6 +152,7 @@ def register_builtin_processes(container): process_version = _get_builtin_metadata(process_id, process_path, "__version__", process_info, "version") process_title = _get_builtin_metadata(process_id, process_path, "__title__", process_info, "title") process_id_resolved = process_info["identifier"] + process_url = "/".join([restapi_url, "processes", process_id_resolved]) process_payload = { "processDescription": { "process": {