[elbe-devel] [PATCH 09/18] elbepack: initvm: call set_cdrom() directly

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Aug 13 13:15:39 CEST 2024


Instead of going through "elbe control", call the set_cdrom()
method directly. This reuses existing connections and improves the error
reporting.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/initvmaction.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index 22b4dea30c2d..8df379cb53aa 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -117,8 +117,7 @@ def _submit_and_dl_result(control, xmlfile, cdrom, args):
 
     if cdrom is not None:
         print('Uploading CDROM. This might take a while')
-        run_elbe(['control', 'set_cdrom', prjdir, cdrom], check=True)
-
+        control.set_cdrom(prjdir, cdrom)
         print('Upload finished')
 
     build_opts = []

-- 
2.46.0



More information about the elbe-devel mailing list