board-inspector: fix the creation of packages

The PackageElementList builder takes variadic arguments, each of which is
an element of the package to be created, not a single argument being the
list of the elements. This patch fix the call to PackageElementList in
build_value() where the wrong type of argument was passed.

Tracked-On: #6287
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Junjie Mao 2021-08-09 16:29:50 +08:00 committed by wenlingz
parent 065316ba1e
commit 50cd8e2558
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ def build_value(value):
return DefPackage(
PkgLength(),
len(value.elements),
PackageElementList(elements))
PackageElementList(*elements))
elif isinstance(value, (str, datatypes.String)):
if isinstance(value, str):
return String(value)