Skip to content
Snippets Groups Projects
Verified Commit 8f4fd629 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

small updates to the callback functionality

parent 122a633a
No related branches found
No related tags found
1 merge request!96Make use of new callback step for external provisioning
......@@ -56,7 +56,7 @@ def _send_request(endpoint: str, parameters: dict, callback_route: str, operatio
assert pp_params
# Build up a callback URL of the Provisioning Proxy to return its results to.
callback_url = f"{oss.GENERAL.public_hostname}/api{callback_route}"
callback_url = f"{oss.GENERAL.public_hostname}{callback_route}"
logger.debug(f"[provisioning proxy] Callback URL set to {callback_url}")
parameters.update({"callback": callback_url})
......@@ -282,7 +282,7 @@ def _show_pp_results(state: State) -> FormGenerator:
title: str = f"Execution for {state['subscription']['product']['name']} completed."
run_status: str = ReadOnlyField(state["callback_result"]["status"])
run_results: LongText = ReadOnlyField(json.dumps(state["callback_result"]["output"], indent=4))
run_results: LongText = ReadOnlyField(json.dumps(state["callback_result"], indent=4))
yield ConfirmRunPage
return state
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment