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

interpret JSON returned from the provisioning proxy

parent 44cd9de1
Branches
Tags
1 merge request!53interpret JSON returned from the provisioning proxy
Pipeline #83783 passed
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment