From 6b1305c77da0f54623378f6e4280fbc51627b8a4 Mon Sep 17 00:00:00 2001 From: Esteban Mathia Date: Fri, 19 Jan 2024 12:58:17 +0100 Subject: [PATCH] object not need if rule not applied --- Kexa/services/analyse.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/Kexa/services/analyse.service.ts b/Kexa/services/analyse.service.ts index b14b97a3..07316d2d 100644 --- a/Kexa/services/analyse.service.ts +++ b/Kexa/services/analyse.service.ts @@ -85,6 +85,7 @@ export function extractAddOnNeed(settingFileList: SettingFile[]){ settingFileList.forEach((ruleFile) => { objectNameList[ruleFile.alert.global.name] = {}; ruleFile.rules.forEach((rule) => { + if(rule.applied === false) return; if(!providerList.includes(rule.cloudProvider)) providerList.push(rule.cloudProvider); if(!objectNameList[ruleFile.alert.global.name][rule.cloudProvider]) objectNameList[ruleFile.alert.global.name][rule.cloudProvider] = new Array(); if(!objectNameList[ruleFile.alert.global.name][rule.cloudProvider].includes(rule.objectName)) objectNameList[ruleFile.alert.global.name][rule.cloudProvider].push(rule.objectName);