From 040b570f7dadf50d86612f77788bdadb028fbe64 Mon Sep 17 00:00:00 2001 From: Karel van Klink <karel.vanklink@geant.org> Date: Fri, 4 Aug 2023 15:51:22 +0200 Subject: [PATCH] Skip pp interaction if needed, when deprovisioning --- gso/services/provisioning_proxy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gso/services/provisioning_proxy.py b/gso/services/provisioning_proxy.py index 75e6b15f..701bea45 100644 --- a/gso/services/provisioning_proxy.py +++ b/gso/services/provisioning_proxy.py @@ -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): -- GitLab