diff --git a/sns_topic.py b/sns_topic.py index 7bf643cb96e..bcaf44a8840 100644 --- a/sns_topic.py +++ b/sns_topic.py @@ -519,8 +519,8 @@ def _set_topic_subs_attributes(self): for sub in list_topic_subscriptions(self.connection, self.module, self.topic_arn): sub_key = (sub['Protocol'], sub['Endpoint']) sub_arn = sub['SubscriptionArn'] - if sub_key not in self.desired_subscription_attributes: - # subscription isn't defined in desired, skipping + if not self.desired_subscription_attributes.get(sub_key): + # subscription attributes aren't defined in desired, skipping continue try: