From 4e759a9cced30401301530f7f5b3ffefbb58b9db Mon Sep 17 00:00:00 2001 From: Joel Thompson Date: Thu, 7 Sep 2017 21:46:30 -0400 Subject: [PATCH] sns_topic: Fix unreferenced variable (#29117) Not sure how this ever worked. Fixes #29102 --- lib/ansible/modules/cloud/amazon/sns_topic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/sns_topic.py b/lib/ansible/modules/cloud/amazon/sns_topic.py index 7c8385c7f67..e0e3ae6a52b 100644 --- a/lib/ansible/modules/cloud/amazon/sns_topic.py +++ b/lib/ansible/modules/cloud/amazon/sns_topic.py @@ -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)