Skip to content
Snippets Groups Projects

update intake form of device termination workflow

Merged Karel van Klink requested to merge feature/NAT-210-termination-checkboxes into develop
Files
3
@@ -212,24 +212,20 @@ 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."
)
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"])
run_results: LongText = ReadOnlyField(f"{state['pp_run_results']['output']}")
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(json.dumps(state["pp_run_results"]["output"], indent=4))
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