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:
parent
065316ba1e
commit
50cd8e2558
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue