Fix for : cloudformation module fails to update if stack exists

This commit is contained in:
Federico Feroldi 2014-03-10 13:11:09 +01:00
parent 87d4bd771f
commit 53f9e96189

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)