From 6d69956f83172f5e6b15103e7203ea0d0cce87b4 Mon Sep 17 00:00:00 2001 From: Fernando J Pando Date: Mon, 22 Feb 2016 17:53:25 -0500 Subject: [PATCH] Fix SNS topic attribute typo Enables adding SNS topic policy. 'Policy' attribute is capitalized. --- lib/ansible/modules/extras/cloud/amazon/sns_topic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/sns_topic.py b/lib/ansible/modules/extras/cloud/amazon/sns_topic.py index bf7dfd70338..217e6f3c0d9 100755 --- a/lib/ansible/modules/extras/cloud/amazon/sns_topic.py +++ b/lib/ansible/modules/extras/cloud/amazon/sns_topic.py @@ -255,7 +255,7 @@ def main(): connection.set_topic_attributes(arn_topic, 'DisplayName', display_name) - if policy and policy != json.loads(topic_attributes['policy']): + if policy and policy != json.loads(topic_attributes['Policy']): changed = True attributes_set.append('policy') if not check_mode: