[elbe-devel] [PATCH 03/11] elbepack: initvm: signal errors through exceptions
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Thu Aug 8 11:38:14 CEST 2024
This is now a library module, so errors should be reported properly.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/initvm.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/elbepack/initvm.py b/elbepack/initvm.py
index da17b111ea7b..9c8973bd99c7 100644
--- a/elbepack/initvm.py
+++ b/elbepack/initvm.py
@@ -372,9 +372,7 @@ class QemuInitVM(_InitVM):
pass
if _is_soap_port_reachable(self._soapport):
- print('\nstopping initvm failed!')
- else:
- print('\ninitvm stopped successfully')
+ raise RuntimeError('stopping initvm failed')
def attach(self):
"""
--
2.46.0
More information about the elbe-devel
mailing list