[elbe-devel] [PATCH 05/14] elbepack: correctly extract login information from XML
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Wed Feb 28 11:34:56 CET 2024
The old methods don't exist anymore.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/commands/check-build.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/commands/check-build.py b/elbepack/commands/check-build.py
index 286ccee30a2a..322a40f9fefc 100644
--- a/elbepack/commands/check-build.py
+++ b/elbepack/commands/check-build.py
@@ -442,8 +442,8 @@ class CheckImage(CheckBase):
def do_login(self, _element, img_name, qemu, opts):
passwd = 'root'
- if self.xml.find('.//action/login').text:
- passwd = self.xml.find('.//action/login').text
+ if self.xml.node('.//action/login'):
+ passwd = self.xml.node('.//action/login').et.text
comm = [
('expect', '.*[Ll]ogin:.*'),
--
2.44.0
More information about the elbe-devel
mailing list