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: