Skip to content
Snippets Groups Projects

Make use of new callback step for external provisioning

Merged Karel van Klink requested to merge feature/use-async-steps into develop
All threads resolved!
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading