From d1bbe48e0ff1ed6f6133e5600729f5cbd40e6874 Mon Sep 17 00:00:00 2001
From: Simone Spinelli <simone.spinelli@geant.org>
Date: Thu, 6 Apr 2023 10:52:29 +0200
Subject: [PATCH] First experiment with forms - part3

---
 geant_service_orchestrator/workflows/device/create_device.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/geant_service_orchestrator/workflows/device/create_device.py b/geant_service_orchestrator/workflows/device/create_device.py
index b3da3ce5..d98943eb 100644
--- a/geant_service_orchestrator/workflows/device/create_device.py
+++ b/geant_service_orchestrator/workflows/device/create_device.py
@@ -129,6 +129,10 @@ def confirmation_form() -> FormGenerator:
     return user_input.dict()
 
 
+user_input = confirmation_form()
+if not user_input.choice:
+    exit
+
 @workflow(
     "Create Device",
     initial_input_form=wrap_create_initial_input_form(
-- 
GitLab