Skip to content
Snippets Groups Projects
Commit 36b71434 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Skip pp interaction if needed, when deprovisioning

parent eafaf7b2
No related branches found
No related tags found
1 merge request!50update intake form of device termination workflow
......@@ -203,6 +203,10 @@ def _confirm_pp_results(state: State) -> FormGenerator:
:return: Confirmation from the user, when presented with the run results.
:rtype: {class}`orchestrator.types.FormGenerator`
"""
if "pp_run_results" not in state:
# FIXME: very dirty hack that makes the skipping """work"""
return {"pp_did_succeed": True}
successful_run = state["pp_run_results"]["return_code"] == 0
class ConfirmRunPage(FormPage):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment