mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-31 16:37:07 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user