parent
5d776936cc
commit
7e7eafb3e3
1 changed files with 4 additions and 2 deletions
|
@ -125,9 +125,9 @@ import time
|
|||
try:
|
||||
import boto
|
||||
import boto.cloudformation.connection
|
||||
HAS_BOTO = True
|
||||
except ImportError:
|
||||
print "failed=True msg='boto required for this module'"
|
||||
sys.exit(1)
|
||||
HAS_BOTO = False
|
||||
|
||||
|
||||
def boto_exception(err):
|
||||
|
@ -206,6 +206,8 @@ def main():
|
|||
module = AnsibleModule(
|
||||
argument_spec=argument_spec,
|
||||
)
|
||||
if not HAS_BOTO:
|
||||
module.fail_json(msg='boto required for this module')
|
||||
|
||||
state = module.params['state']
|
||||
stack_name = module.params['stack_name']
|
||||
|
|
Loading…
Reference in a new issue