Skip to content
Snippets Groups Projects

Modify the failure form to make it more user-friendly

Merged Simone Spinelli requested to merge fix_the_failure_form into develop
1 file
+ 5
8
Compare changes
  • Side-by-side
  • Inline
@@ -213,19 +213,16 @@ def _confirm_pp_results(state: State) -> FormGenerator:
f"completed, please confirm the results below."
)
run_status: str = ReadOnlyField(state["pp_run_results"]["status"])
if not successful_run:
warning_run_status: str = ReadOnlyField(state["pp_run_results"]["status"])
failed_run_status: str = ReadOnlyField(state["pp_run_results"]["status"])
broken_run_status: str = ReadOnlyField(state["pp_run_results"]["status"])
ouch_run_status: str = ReadOnlyField(state["pp_run_results"]["status"])
unsuccessful_run_status: str = ReadOnlyField(state["pp_run_results"]["status"])
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']}")
if not successful_run:
pp_retry_label: Label = (
"Provisioning Proxy playbook execution failed, it will be retried (up to two times)." # type: ignore
"Click submit to retry. Otherwise, abort the workflow from the process tab." # type: ignore
)
confirm: Accept = Accept("INCOMPLETE")
yield ConfirmRunPage
Loading