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

Merge pull request #6366 from cloudify/devel

Fix for #6365: cloudformation module fails to update if stack exists
This commit is contained in:
Michael DeHaan 2014-03-11 10:17:47 -05:00
commit 5978567509

View file

@ -250,7 +250,7 @@ def main():
operation = 'CREATE'
except Exception, err:
error_msg = boto_exception(err)
if 'AlreadyExistsException' in error_msg:
if 'AlreadyExistsException' in error_msg or 'already exists' in error_msg:
update = True
else:
module.fail_json(msg=error_msg)