mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-17 08:54:16 +00:00
fix(aws): SNS threw IndexError if SubscriptionArn is PendingConfirmation (#6896)
(cherry picked from commit 0ff4df0836)
# Conflicts:
# prowler/providers/aws/services/sns/sns_service.py
This commit is contained in:
1 parent
c88663b7ef
commit
4dcb1145a5
1 file changed
+5
-1
@@ -92,11 +92,15 @@ class SNS(AWSService):
|
||||
)
|
||||
subscriptions: list[Subscription] = [
|
||||
Subscription(
|
||||
id=sub["SubscriptionArn"].split(":")[-1],
|
||||
id=(parts := sub["SubscriptionArn"].split(":"))[-1],
|
||||
arn=sub["SubscriptionArn"],
|
||||
owner=sub["Owner"],
|
||||
protocol=sub["Protocol"],
|
||||
endpoint=sub["Endpoint"],
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
region=parts[3] if len(parts) > 3 else "unknown",
|
||||
>>>>>>> 0ff4df083 (fix(aws): SNS threw IndexError if SubscriptionArn is PendingConfirmation (#6896))
|
||||
)
|
||||
for sub in response["Subscriptions"]
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user