Skip to contentSkip to conversation

arm/generate_capsule_json_multiple: Fix --selected_components default behavior

PATCH New Kevin Hao 1 participant 1 message Apr 16

lore
Share & tools
lore

Kevin Hao

author
#0 lore raw

PATCH 1/1 arm/generate_capsule_json_multiple: Fix --selected_components default behavior

When --selected_components is not specified, the script should include all components as documented in the help text. However, the current implementation skips all components when the parameter is empty, resulting in an error.

Fix the filtering logic to only apply when --selected_components is explicitly provided with values.

---
 meta-arm/scripts/generate_capsule_json_multiple.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm/scripts/generate_capsule_json_multiple.py +1 -1
index 1342574813c8..55c4b3514cf2 100644
@@ -93,7 +93,7 @@ def create_payloads(args: argparse.Namespace) -> List[dict]:
     for i in range(num_payloads):
 
         # If filtering is enabled, skip if not in the allowed components list
-        if  args.components[i] not in args.selected_components:
+        if args.selected_components and args.components[i] not in args.selected_components:
             continue
 
         payload = {

---
base-commit: 01abd473bc1ddbf399fd10f4c45959ad2e214f3d
change-id: 20260416-generate_capsule_json_multiple-e36fc83a8435

Best regards,

Signature · 1 line
Kevin Hao <[email protected]>