mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Forgot to add one last condition to ensure that non pending confirmation subscription is returned.
This commit is contained in:
parent
9d125944c0
commit
63d6d8dbe2
@ -266,7 +266,7 @@ func findSubscriptionByNonID(d *schema.ResourceData, snsconn *sns.SNS) (*sns.Sub
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, subscription := range res.Subscriptions {
|
for _, subscription := range res.Subscriptions {
|
||||||
if *subscription.Endpoint == endpoint && *subscription.Protocol == protocol && *subscription.TopicArn == topic_arn {
|
if *subscription.Endpoint == endpoint && *subscription.Protocol == protocol && *subscription.TopicArn == topic_arn && *subscription.SubscriptionArn != awsSNSPendingConfirmationMessage {
|
||||||
return subscription, nil
|
return subscription, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user