1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fail gracefully if boto is not available and add me to the author line.

This commit is contained in:
Tim Gerla 2013-01-22 14:29:28 -08:00
parent 139aee58e2
commit cafb717b55

View file

@ -93,12 +93,18 @@ examples:
- code: "local_action: ec2 keypair=admin instance_type=m1.large image=emi-40603AD1 wait=true group=webserver"
description: "Examples from Ansible Playbooks"
requirements: [ "boto" ]
author: Seth Vidal
author: Seth Vidal, Tim Gerla
'''
import boto
import sys
import time
try:
import boto
except ImportError:
print "failed=True msg='boto required for this module'"
sys.exit(1)
def main():
module = AnsibleModule(
argument_spec = dict(