Skip to content

Commit

Permalink
Added latest true check
Browse files Browse the repository at this point in the history
  • Loading branch information
KanchanaAradhya committed Sep 24, 2019
1 parent 29d20ed commit 4b23e7e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,7 @@ public static List<String> getSeverityVulnerabilitiesByInstanceId(String instanc
Map<String, Object> mustNotFilter = new HashMap<>();
HashMultimap<String, Object> shouldFilter = HashMultimap.create();
Map<String, Object> mustTermsFilter = new HashMap<>();
mustFilter.put(PacmanRuleConstants.LATEST, PacmanRuleConstants.TRUE_VAL);
mustFilter.put(convertAttributetoKeyword(PacmanRuleConstants.SEVERITY), severityVulnValue);
mustFilter.put(convertAttributetoKeyword(PacmanRuleConstants.RESOURCE_ID), instanceId);
JsonObject resultJson = RulesElasticSearchRepositoryUtil.getQueryDetailsFromES(ec2WithVulnUrl, mustFilter,
Expand Down

0 comments on commit 4b23e7e

Please sign in to comment.