Skip to content

Commit b688047

Browse files
committed
fix:[NEXT-1921] Pagination issue.
1 parent 2cf2302 commit b688047

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • jobs/pacman-cloud-discovery/src/main/java/com/tmobile/cso/pacman/inventory/util

jobs/pacman-cloud-discovery/src/main/java/com/tmobile/cso/pacman/inventory/util/InventoryUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2596,11 +2596,11 @@ public static Map<String, List<SQSVH>> fetchSQSInfo(BasicSessionCredentials temp
25962596
String expPrefix = InventoryConstants.ERROR_PREFIX_CODE + accountId + "\",\"Message\": \"Exception in fetching info for resource\" ,\"type\": \"sqs\"";
25972597
for (Region region : RegionUtils.getRegions()) {
25982598
try {
2599-
amazonSQS = AmazonSQSClientBuilder.standard()
2600-
.withCredentials(new AWSStaticCredentialsProvider(temporaryCredentials))
2601-
.withRegion(region.getName())
2602-
.build();
26032599
if (!skipRegions.contains(region.getName())) {
2600+
amazonSQS = AmazonSQSClientBuilder.standard()
2601+
.withCredentials(new AWSStaticCredentialsProvider(temporaryCredentials))
2602+
.withRegion(region.getName())
2603+
.build();
26042604
List<String> sqsUrls = new ArrayList<>();
26052605
String nextToken = null;
26062606
do {

0 commit comments

Comments
 (0)