[elbe-devel] [PATCH 16/18] elbepack: initvm: call del_project() directly
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Aug 13 13:15:46 CEST 2024
Instead of going through "elbe control", call the del_project()
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 2274bf1a3c86..580f144834c3 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -14,7 +14,6 @@ import elbepack
import elbepack.initvm
from elbepack.cli import CliError, add_argument, with_cli_details
from elbepack.config import add_argument_sshport, add_arguments_soapclient
-from elbepack.directories import run_elbe
from elbepack.elbexml import ElbeXML, ValidationError, ValidationMode
from elbepack.filesystem import TmpdirFilesystem
from elbepack.init import create_initvm
@@ -213,7 +212,7 @@ def _submit_and_dl_result(control, xmlfile, cdrom, args):
print(f'{file.name}\t{file.description}')
if not args.keep_files:
- run_elbe(['control', 'del_project', prjdir], check=True)
+ control.service.del_project(prjdir)
def _extract_cdrom(cdrom):
--
2.46.0
More information about the elbe-devel
mailing list