diff --git a/gso/services/provisioning_proxy.py b/gso/services/provisioning_proxy.py index 548be84fe04f7db0ff6132042f6bedabe1db529f..75e6b15f07db2537f061a3bc34bd7f7f2478b29a 100644 --- a/gso/services/provisioning_proxy.py +++ b/gso/services/provisioning_proxy.py @@ -208,17 +208,16 @@ def _confirm_pp_results(state: State) -> FormGenerator: class ConfirmRunPage(FormPage): class Config: title = ( - f"Execution for " - f"{state['subscription']['product']['name']} " - f"completed, please confirm the results below." + f"Execution for {state['subscription']['product']['name']} completed, please confirm the results below." ) if not successful_run: pp_retry_label1: Label = ( "Provisioning Proxy - playbook execution failed: inspect the output before proceeding" # type: ignore ) + run_status: str = ReadOnlyField(state["pp_run_results"]["status"]) - run_results: LongText = ReadOnlyField(f"{state['pp_run_results']['output']}") + run_results: LongText = ReadOnlyField(json.dumps(state["pp_run_results"]["output"], indent=4)) if not successful_run: pp_retry_label: Label = ( "Click submit to retry. Otherwise, abort the workflow from the process tab." # type: ignore