Skip to content

Commit

Permalink
fix builtin process URL references to use resolved ID from YAML confi…
Browse files Browse the repository at this point in the history
…g if provided
  • Loading branch information
fmigneault committed Oct 24, 2023
1 parent ee7cd0e commit 912ced6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weaver/processes/builtin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ 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
)
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": {
Expand Down

0 comments on commit 912ced6

Please sign in to comment.