mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 10:43:14 +00:00
sns: remove BabyJSON
This commit is contained in:
committed by
Matt Clay
parent
dc788cf045
commit
6b6aeefa7b
@@ -107,9 +107,9 @@ try:
|
||||
import boto
|
||||
import boto.ec2
|
||||
import boto.sns
|
||||
HAS_BOTO = True
|
||||
except ImportError:
|
||||
print "failed=True msg='boto required for this module'"
|
||||
sys.exit(1)
|
||||
HAS_BOTO = False
|
||||
|
||||
|
||||
def arn_topic_lookup(connection, short_topic):
|
||||
@@ -140,6 +140,9 @@ def main():
|
||||
|
||||
module = AnsibleModule(argument_spec=argument_spec)
|
||||
|
||||
if not HAS_BOTO:
|
||||
module.fail_json(msg='boto required for this module')
|
||||
|
||||
msg = module.params['msg']
|
||||
subject = module.params['subject']
|
||||
topic = module.params['topic']
|
||||
|
||||
Reference in New Issue
Block a user