mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-01 05:49:09 -07:00
sns: remove BabyJSON
This commit is contained in:
parent
dc788cf045
commit
6b6aeefa7b
1 changed files with 5 additions and 2 deletions
|
@ -107,9 +107,9 @@ try:
|
||||||
import boto
|
import boto
|
||||||
import boto.ec2
|
import boto.ec2
|
||||||
import boto.sns
|
import boto.sns
|
||||||
|
HAS_BOTO = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "failed=True msg='boto required for this module'"
|
HAS_BOTO = False
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
|
|
||||||
def arn_topic_lookup(connection, short_topic):
|
def arn_topic_lookup(connection, short_topic):
|
||||||
|
@ -140,6 +140,9 @@ def main():
|
||||||
|
|
||||||
module = AnsibleModule(argument_spec=argument_spec)
|
module = AnsibleModule(argument_spec=argument_spec)
|
||||||
|
|
||||||
|
if not HAS_BOTO:
|
||||||
|
module.fail_json(msg='boto required for this module')
|
||||||
|
|
||||||
msg = module.params['msg']
|
msg = module.params['msg']
|
||||||
subject = module.params['subject']
|
subject = module.params['subject']
|
||||||
topic = module.params['topic']
|
topic = module.params['topic']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue