Skip to content
Snippets Groups Projects

interpret JSON returned from the provisioning proxy

Merged Karel van Klink requested to merge feature/NAT-228-interpret-JSON-from-LSO into develop
1 file
+ 3
4
Compare changes
  • Side-by-side
  • Inline
@@ -208,17 +208,16 @@ def _confirm_pp_results(state: State) -> FormGenerator:
@@ -208,17 +208,16 @@ def _confirm_pp_results(state: State) -> FormGenerator:
class ConfirmRunPage(FormPage):
class ConfirmRunPage(FormPage):
class Config:
class Config:
title = (
title = (
f"Execution for "
f"Execution for {state['subscription']['product']['name']} completed, please confirm the results below."
f"{state['subscription']['product']['name']} "
f"completed, please confirm the results below."
)
)
if not successful_run:
if not successful_run:
pp_retry_label1: Label = (
pp_retry_label1: Label = (
"Provisioning Proxy - playbook execution failed: inspect the output before proceeding" # type: ignore
"Provisioning Proxy - playbook execution failed: inspect the output before proceeding" # type: ignore
)
)
 
run_status: str = ReadOnlyField(state["pp_run_results"]["status"])
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:
if not successful_run:
pp_retry_label: Label = (
pp_retry_label: Label = (
"Click submit to retry. Otherwise, abort the workflow from the process tab." # type: ignore
"Click submit to retry. Otherwise, abort the workflow from the process tab." # type: ignore
Loading