Skip to content
Snippets Groups Projects
Commit 9adcd764 authored by Simone Spinelli's avatar Simone Spinelli
Browse files

Modify the failure form to make it more user-friendly

parent 6cd2a6c5
No related branches found
No related tags found
1 merge request!51Modify the failure form to make it more user-friendly
Pipeline #83758 failed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment