config-tools: remove empty cache_region entry

Currently the empty cache_regions are saved to scenario file. It is
useless, and unable to pass the load/build validation check, causing
build fail.

This patch add a filter to the empty cache_region entry, so that the
load/build validation check may pass.

Tracked-On: #7609
Signed-off-by: Wu Zhou <wu.zhou@intel.com>
This commit is contained in:
Wu Zhou 2022-05-30 14:51:50 +08:00 committed by acrnsi-robot
parent c90eeb1e0c
commit 64ec3917e1

View File

@ -597,6 +597,12 @@ export default {
// return a['@id'] - b['@id']
// });
})
for (let i = 0; i < board_cat_info.length; i++) {
if (board_cat_info[i].data.POLICY.length == 0) {
board_cat_info.splice(i--, 1)
}
}
return board_cat_info;
}