On 25.08.20 10:37, contact....@gmail.com wrote:
> At the current head of the next branch, jailhouse cell linux throws  an
> error:
> 
> Traceback (most recent call last):
>   File "tools/jailhouse-cell-linux", line 723, in <module>
>     config = config_parser.CellConfig(args.config.read())
> TypeError: __init__() takes 1 positional argument but 2 were given
> 
> Thorsten
> 
> PS sorry for probably replying to the wrong patch-thread
> 

No problem - thanks for reporting!

This comes from "pyjailhouse: config_parser: move parsing into class 
methods". Does this help?

diff --git a/tools/jailhouse-cell-linux b/tools/jailhouse-cell-linux
index 4178d4e0..aab82a5e 100755
--- a/tools/jailhouse-cell-linux
+++ b/tools/jailhouse-cell-linux
@@ -720,7 +720,7 @@ except IOError as e:
 arch = resolve_arch(args.arch)
 
 try:
-    config = config_parser.CellConfig(args.config.read())
+    config = config_parser.CellConfig.parse(args.config.read())
 except RuntimeError as e:
     print(str(e) + ": " + args.config.name, file=sys.stderr)
     exit(1)

Then I will fold it into Andrej's commit.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jailhouse-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/335079f2-a73e-fad0-a446-4dc9d13f00d4%40siemens.com.

Reply via email to