From 0aac5a4945c8773ac3cbbb79e951ae441d39657d Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Tue, 2 May 2023 14:59:32 +0200 Subject: [PATCH] pipeline: targets-compositor: whole target can be `enabled: no` to quickly disable it (as if it wasn't there) --- lib/tools/info/targets-compositor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tools/info/targets-compositor.py b/lib/tools/info/targets-compositor.py index c32e4c1791..39cf184031 100644 --- a/lib/tools/info/targets-compositor.py +++ b/lib/tools/info/targets-compositor.py @@ -59,6 +59,10 @@ invocations_dict: list[dict] = [] for target_name in targets["targets"]: target_obj = targets["targets"][target_name] + if "enabled" in target_obj and not target_obj["enabled"]: + log.warning(f"Skipping disabled target '{target_name}'...") + continue + all_items = [] all_expansions = []