[elbe-devel] [PATCH 08/18] elbepack: initvm: call set_xml() directly
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Aug 13 13:15:38 CEST 2024
Instead of going through "elbe control", call the set_xml()
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 | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index e4f5c4e48ad8..22b4dea30c2d 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -109,9 +109,7 @@ def _submit_and_dl_result(control, xmlfile, cdrom, args):
soapport=args.soapport) as xmlfile:
prjdir = control.service.new_project()
-
- ps = run_elbe(['control', 'set_xml', prjdir, xmlfile],
- capture_output=True, encoding='utf-8', check=True)
+ control.set_xml(prjdir, xmlfile)
if args.writeproject:
with open(args.writeproject, 'w') as wpf:
--
2.46.0
More information about the elbe-devel
mailing list