From 3eb878a8cfccad13d506712bfa47b2dfb189c398 Mon Sep 17 00:00:00 2001 From: Arun Kumar <104547029+arunpaladin@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:42:05 -0800 Subject: [PATCH] fix:[NEXT-378] Gap Policy fix --- .../awsrules/ec2/AssetTypeScannedBySourceRule.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/jobs/pacman-awsrules/src/main/java/com/tmobile/cloud/awsrules/ec2/AssetTypeScannedBySourceRule.java b/jobs/pacman-awsrules/src/main/java/com/tmobile/cloud/awsrules/ec2/AssetTypeScannedBySourceRule.java index b01fb8a30..d2b5cec17 100644 --- a/jobs/pacman-awsrules/src/main/java/com/tmobile/cloud/awsrules/ec2/AssetTypeScannedBySourceRule.java +++ b/jobs/pacman-awsrules/src/main/java/com/tmobile/cloud/awsrules/ec2/AssetTypeScannedBySourceRule.java @@ -104,9 +104,6 @@ private void validatePolicyConfig(Map policyParam) { } } - private String getElasticSearchURL(String source, String targetType) { - return PacmanUtils.getPacmanHost(PacmanRuleConstants.ES_URI) + "/" + source + "_" + targetType + "_opinions/_search"; - } private String getDocID(Map resourceAttributes) { return StringUtils.trim(resourceAttributes.get("_docid")); @@ -124,7 +121,7 @@ private PolicyResult processPolicy(Map policyParam, Map policyParam, Map policyParam, Map createFilterMap(String docID, String targetType) { Map mustFilter = new HashMap<>(); mustFilter.put("_docId.keyword", docID);