sns_topic: Fix unreferenced variable (#29117)

Not sure how this ever worked.

Fixes #29102
This commit is contained in:
Joel Thompson 2017-09-07 21:46:30 -04:00 committed by Sam Doran
parent c749ecbd94
commit 4e759a9cce

View file

@ -280,7 +280,7 @@ class SnsTopicManager(object):
for (protocol, endpoint) in desired_subscriptions:
if (protocol, endpoint) not in subscriptions_existing_list:
self.changed = True
self.subscriptions_added.append(sub)
self.subscriptions_added.append((protocol, endpoint))
if not self.check_mode:
self.connection.subscribe(self.arn_topic, protocol, endpoint)